[FLOW3-general] Controller must be prototypes!
Bastian Waidelich
bastian at typo3.org
Wed Feb 20 14:15:36 CET 2013
Hi all,
Helmut just reminded me of an oddity in Flow: Currently all the
controllers (and the ones that you create via the kickstarter) are of
scope singleton (e.g. contain the @Flow\Scope("singleton") annotation).
Usually that doesn't really make a difference, because controllers are
only instantiated once.
But if we start using the same controller multiple times (say two plugin
instances on one page) we'll get really weird effects..
BTW: For command controllers it's obviously OK to be singletons, but
there is no advantage in doing so.
I also created an issue for this on forge [1].
[1] http://forge.typo3.org/issues/45647
--
Bastian Waidelich
--
Core Developer Team
TYPO3 .... inspiring people to share!
Get involved: typo3.org
More information about the FLOW3-general
mailing list