Sulu\Bundle\ContentBundle\Controller\WebspaceController::getSecurityContext PHP Метод

getSecurityContext() публичный Метод

public getSecurityContext ( )
    public function getSecurityContext()
    {
        $request = $this->container->get('request_stack')->getCurrentRequest();
        $webspaceKey = $request->get('webspaceKey');
        if (null !== $webspaceKey) {
            return $this->getSecurityContextByWebspace($webspaceKey);
        }
        return;
    }