本文整理汇总了PHP中Symfony\Component\Security\Core\SecurityContext::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP SecurityContext::__construct方法的具体用法?PHP SecurityContext::__construct怎么用?PHP SecurityContext::__construct使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Symfony\Component\Security\Core\SecurityContext
的用法示例。
在下文中一共展示了SecurityContext::__construct方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
/**
* @param $security_config
* @param $encoderFactory
* @param $doctrine
*/
public function __construct($security_config, $encoderFactory, $doctrine)
{
$this->security_config = $security_config;
$this->encoderFactory = $encoderFactory;
$this->doctrine = $doctrine;
parent::__construct($this->getAuthenticationManager(), $this->getAccessDecisionManager());
}
示例2: __construct
public function __construct(BBApplication $application, AuthenticationManagerInterface $authenticationManager, AccessDecisionManagerInterface $accessDecisionManager)
{
$this->application = $application;
$this->logger = $this->application->getLogging();
$this->dispatcher = $this->application->getEventDispatcher();
if (null === ($securityConfig = $this->application->getConfig()->getSecurityConfig())) {
trigger_error('None security configuration found', E_USER_NOTICE);
return;
}
$this->config = $securityConfig;
$this->authmanager = $authenticationManager;
$this->createEncoderFactory($securityConfig);
$this->createProviders($securityConfig);
$this->createACLProvider($securityConfig);
$this->createFirewallMap($securityConfig);
$this->registerFirewall();
parent::__construct($this->authmanager, $accessDecisionManager);
}