[TYPO3-mvc] setRespectStoragePage via initializeObject()
Thomas Mammitzsch
thomas at visualworx.de
Thu Feb 10 11:46:27 CET 2011
Great, that works!
Is it right, that the inject methods in the controller can handle only
one argument? So i need separate inject methods for each repository or
use constructor injection?
regards, Thomas
Am 10.02.2011 09:41, schrieb Marc Bastian Heinrichs:
> Hey,
>
> Am 09.02.11 23:11, schrieb Thomas Mammitzsch:
>> ok, thanks, but what if i create a repository instance in a model?
>
> You could use the object manager via
> $objectManager = t3lib_div::makeInstance('Tx_Extbase_Object_ObjectManager');
> $myRespository =
> $objectManager->get('Tx_ExtName_Domain_Repository_MyRepository');
> till DI will be implemented for domain objects.
>
> Best
> Marc Bastian
More information about the TYPO3-project-typo3v4mvc
mailing list