[TYPO3-mvc] Concept of dynamic USER_INT switch maybe has to be refactored?

Franz Koch typo3.RemoveForMessage at elements-net.de
Tue Mar 2 12:38:45 CET 2010


Hi Jochen,

> Using the new convertToUserIntObject() will not work as the the
> Dispatcher must be called as USER od USER_INT. If it is already defined
> to be USER the method convertToUserIntObject() inside the Extension will
> never be called.

Why not? You can trigger convertToUserIntObject() from inside your 
extension (in this case the dispatcher) and immediately return NULL. 
Typo3 will then check if convertToUserIntObject was triggered and recall 
the extension as USER_INT (with a slight processing overhead of course).
The check for USER_INT or not would have to be done in the dispatcher 
right after the initialization of the request object - thus as early as 
possible.

Do you really think this won't work that way?

-- 
kind regards,
Franz Koch


More information about the TYPO3-project-typo3v4mvc mailing list