[FLOW3-general] How to determine the context in a command controller?

Karsten Dambekalns karsten at typo3.org
Thu Jun 14 09:10:47 CEST 2012


Hi.

On 14.06.12 02:39, Robert Lemke wrote:

>> How can I detect the context and exit as soon as the command
>> controller is called from outside of the Development context?
 …
> the official way as of FLOW3 1.1 is using the getContext() method of the Bootstrap. Just inject the TYPO3\FLOW3\Core\Bootstrap into your controller and call that method.

BTW: I just added that to http://wiki.typo3.org/FLOW3_Cookbook

Regards,
Karsten
-- 
Karsten Dambekalns
TYPO3 Core Developer, FLOW3 / Phoenix Team

TYPO3 .... inspiring people to share!
Get involved: typo3.org


More information about the FLOW3-general mailing list