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
 /**
  * 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);
 }