[Flow] AuthenticationManager cant be Injected
Christian Loock
chl at vkf-renzel.de
Tue Apr 8 08:23:55 CEST 2014
Hello,
I am trying to Inject the Authentication Manager inside my controller in
order to find out if the User is Authenticated. I do a simple Inject:
/**
* @var
\TYPO3\Flow\Security\Authentication\AuthenticationManagerInterface
* @Flow\Inject
*/
protected $authenticationManager;
And try to use it inside my initializeAction / initializeView like this,
which in both cases wont work:
if ($this->authenticationManager->isAuthenticated()) {
...
}
$this->authenticationManager is NULL in both cases. Is there something
special about this class that it cant be injected? I looked inside the
AbstractAuthenticationController and it is used the same way there. Lots
of confusion are the result.
Does anybody know something about that?
--
Christian Loock
Web Developer
Renzel Agentur
www.renzel-agentur.de
More information about the Flow
mailing list