[TYPO3-mvc] typo3.eclipse.extender with object manager in Extbase

Bastian Waidelich bastian at typo3.org
Wed Oct 6 10:31:40 CEST 2010


Martin Kutschker wrote:

>> spl_factory_register(array(new ObjectFactory(), 'create'));
>> $logger = new SomeLogger();

> The former code leads possibly to recursion as the first "new" will trigger a second "new" in the
> factory.

Not really, as no factory is registered at that point.
And if it is - it returns either an object or FALSE, in which case it 
would fall back to the default behavior, if I got it right.

Best,
Bastian


More information about the TYPO3-project-typo3v4mvc mailing list