[Flow] InitializeAction called before reauthentication

Christian Loock chl at vkf-renzel.de
Thu Apr 3 14:46:28 CEST 2014


Yeah thats basically what I do. This is so weird.

On 03.04.2014 14:43, Steffen Wickham wrote:
> Hello Christian,
>
> in my private project I'm doing some user related stuff, which should be
> available in all views and derived controllers as well, in the
> initializeView method of my BasicAppController. This works pretty good
> for me :)
> I just inject securityContext as property within this controller and can
> access all methods of the Context.
>
> greetings
> Steffen
>
>
> Am 03.04.14 14:37, schrieb Christian Loock:
>> So yeah, this still won't work. No Security Context is available in my
>> initializeAction. However, I need to do some stuff before every action
>> of my controller to set some user related variables for the layout and
>> stuff like that. I dont see how I can do this somewhere else...
>>
>>
>> On 03.04.2014 11:47, Christian Loock wrote:
>>> What exactly do you mean by service?
>>>
>>>
>>> On 03.04.2014 09:09, Adrian Föder wrote:
>>>> Hi Christian,
>>>>
>>>> well, that's simply correct.
>>>> The initialize actions are rather meant for property mapping
>>>> corrections etc., if you need more sophisticated handling, put it in
>>>> the actual controller action method itself or in a service.
>>>>
>>>> Best,
>>>> Adrian
>>>>
>>>> Am 02.04.2014 15:15, schrieb Christian Loock:
>>>>> Hi,
>>>>>
>>>>> i wonder if it is on purpose, that my controller's initalizeAction
>>>>> method gets called, before the security context is initialized. This
>>>>> way, i cant do anything that is Userrelated in this methods, which
>>>>> does
>>>>> not seem right to me. Can anybody enlighten me about this?
>>>>>
>>>>> -- 
>>>>> Cheers,
>>>>>
>>>>> Christian
>>>>>
>>>> _______________________________________________
>>>> Flow mailing list
>>>> Flow at lists.typo3.org
>>>> http://lists.typo3.org/cgi-bin/mailman/listinfo/flow
> _______________________________________________
> Flow mailing list
> Flow at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/flow

-- 
Cheers,

Christian



More information about the Flow mailing list