src/Sulu/Bundle/SecurityBundle/User/UserProvider.php
private function getSystem()
    {
        $system = $this->suluSystem;
        $request = $this->requestStack->getCurrentRequest();

        if (null !== $request
            && $request->attributes->has('_sulu')
            && null !== ($webspace = $request->attributes->get('_sulu')->getAttribute('webspace'))
            && null !== ($security = $webspace->getSecurity())
        ) {
            $system = $security->getSystem();
        }

        return $system;
    }
private function getSystem()
    {
        $system = $this->suluSystem;
        $request = $this->requestStack->getCurrentRequest();

        if (null !== $request
            && $request->attributes->has('_sulu')
            && null !== ($webspace = $request->attributes->get('_sulu')->getAttribute('webspace'))
            && null !== ($security = $webspace->getSecurity())
        ) {
            $system = $security->getSystem();
        }

        return $system;
    }
private function getSystem ( ) { $ system = $ this -> suluSystem ; $ request = $ this -> requestStack -> getCurrentRequest ( ) ; if ( null !== $ request && $ request -> attributes -> has ( '_sulu' ) && null !== ( $ webspace = $ request -> attributes -> get ( '_sulu' ) -> getAttribute ( 'webspace' ) ) && null !== ( $ security = $ webspace -> getSecurity ( ) ) ) { $ system = $ security -> getSystem ( ) ; } return $ system ; }
Returns the required system for the current request.

@return string
Returns the required system for the current request .