[Flow] AuthenticationManager cant be Injected
Christian Loock
chl at vkf-renzel.de
Tue Apr 8 08:28:48 CEST 2014
Okay, nevermind. Flushing the Cache solved this. Even though it's weird,
since the changes to the class were loaded before. I tested it by adding
a var_dump to see if the authenticationManager was loaded.
On 08.04.2014 08:23, Christian Loock wrote:
> 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