[TYPO3-dev] Best-practice: dependencies in Controllers
Xavier Perseguers
xavier at typo3.org
Wed Feb 12 14:52:59 CET 2014
Hi,
> to instanciate new prototypes use
> $objectManager->create('Vendor\\Extension\\Path\\To\\Model',$construcotArgument1,$constructorArgument2);
->create has been deprecated, do not use anymore, always use ->get
Cheers
--
Xavier Perseguers
TYPO3 CMS Team Member
TYPO3 .... inspiring people to share!
Get involved: http://typo3.org
More information about the TYPO3-dev
mailing list