Neos\Flow\Security\Authentication\AuthenticationManagerInterface::setSecurityContext PHP Method

setSecurityContext() public method

Sets the security context
public setSecurityContext ( Context $securityContext ) : void
$securityContext Neos\Flow\Security\Context The security context of the current request
return void
    public function setSecurityContext(SecurityContext $securityContext);

Usage Example

Exemplo n.º 1
0
 /**
  * Inject the authentication manager
  *
  * @param Authentication\AuthenticationManagerInterface $authenticationManager The authentication manager
  * @return void
  */
 public function injectAuthenticationManager(Authentication\AuthenticationManagerInterface $authenticationManager)
 {
     $this->authenticationManager = $authenticationManager;
     $this->authenticationManager->setSecurityContext($this);
 }