public function setSecurityContext(SecurityContext $securityContext);
/** * 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); }