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

Martin Kutschker masi-no at spam-typo3.org
Wed Oct 6 10:29:32 CEST 2010


Am 06.10.2010 10:06, schrieb Bastian Waidelich:
> 
>> Anyway, I think the proposal as it is interferes with the auto-loader.
> 
> I don't think so..
> spl_factory_register(array(new ObjectFactory(), 'create'));
> $logger = new SomeLogger();
> 
> would be just the same as:
> $objectFactory = new ObjectFactory();
> $logger = $objectFactory->create('SomeLogger');

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

Masi


More information about the TYPO3-project-typo3v4mvc mailing list