[FLOW3-general] Object Framework vs. new
Robert Lemke
robert at typo3.org
Tue Feb 2 16:47:29 CET 2010
Hi Michael,
Am 02.02.2010 um 16:31 schrieb Michael Sauter:
> I recently used the class \F3\FLOW3\Reflection\ClassReflection in my application and wanted to retrieve it via the object framework. I got the exception that the class is not registered (#1166550023).
>
> After having a look how it is used in other contexts, I discovered that throughout FLOW3, it is always instantiated with the new operator.
>
> Now, I don't really get why this is different to the other classes? Why is it used that way? Shouldn't all objects be retrieved from the object framework?
That's not on purpose, please open an issue for that.
Background information: Many classes within FLOW3 which are used very early in the bootstrap need to be registered manually in FLOW3's Objects.yaml file because there is no package manager or object manager yet which could register these classes. In the case of the classes in the Reflection sub package we just forgot to register them.
robert
--
Robert Lemke
Fluent Code Artisan
Lead Developer TYPO3 5.0 and FLOW3
TYPO3 Association co-founder
http://typo3.org
http://flow3.typo3.org
http://association.typo3.org
More information about the FLOW3-general
mailing list