src/CoreBundle/EventListener/UserListener.php
public function onKernelRequest(GetResponseEvent $event)
    {
        if (!$this->scopeMatcher->isBackendMasterRequest($event)) {
            return;
        }

        $token = $this->tokenStorage->getToken();

        if (null === $token || $this->authenticationTrustResolver->isAnonymous($token)) {
            return;
        }

        $localMenu = &$GLOBALS['BE_MOD'];
        $this->buildBackendModules($localMenu);
        $this->injectChildTables($localMenu);
    }
public function onKernelRequest(GetResponseEvent $event)
    {
        if (!$this->scopeMatcher->isBackendMasterRequest($event)) {
            return;
        }

        $token = $this->tokenStorage->getToken();

        if (null === $token || $this->authenticationTrustResolver->isAnonymous($token)) {
            return;
        }

        $localMenu = &$GLOBALS['BE_MOD'];
        $this->buildBackendModules($localMenu);
        $this->injectChildTables($localMenu);
    }
public function onKernelRequest ( GetResponseEvent $ event ) { if ( ! $ this -> scopeMatcher -> isBackendMasterRequest ( $ event ) ) { return ; } $ token = $ this -> tokenStorage -> getToken ( ) ; if ( null === $ token || $ this -> authenticationTrustResolver -> isAnonymous ( $ token ) ) { return ; } $ localMenu = & $ GLOBALS [ 'BE_MOD' ] ; $ this -> buildBackendModules ( $ localMenu ) ; $ this -> injectChildTables ( $ localMenu ) ; }
Replaces the current session data with the stored session data.

@param GetResponseEvent $event The event.

@SuppressWarnings(PHPMD.Superglobals)
@SuppressWarnings(PHPMD.CamelCaseVariableName)

@return void
Replaces the current session data with the stored session data .