[TYPO3-mvc] Repository ->update with TYPO3 4.7.6 / 4.7.7

Marc Bastian Heinrichs typo3 at mbh-web.de
Wed Dec 19 08:56:10 CET 2012


Hi,

> Am 30.11.2012 11:28, schrieb Valentin Zickner:
>> I solved the problem. This problem occures, when you do not use
>> dependency injection (in your own extension).
>>
>> In this old extension, I used the old way:
>> $this->repo = t3lib_div::makeInstance('Tx_...Repository');
>>
>> In this case, the repository can not use dependency injection and this
>> error occures. So it is neccessary to use dependency injection for
>> repositories in TYPO3 4.7.6 and later.
>
> Maybe dependency injection is not really necessary, but probably using
> the object manager (instead of makeInstance) is so that the repository
> gets its dependencies properly injected.

Jep, atm you need to use the object manager or you could use DI.

Because we don't want to break this by a patch version update a fix for
this is commited current branches (1) an will be shipped with
Version 4.7.8 and 4.6.16.

Best
Marc Bastian


(1)
4.7: 
http://git.typo3.org/TYPO3v4/CoreProjects/MVC/extbase.git/commit/42755822d59b2bbf3d5b7823faa6ff7e5eb64547
1.4: 
http://git.typo3.org/TYPO3v4/CoreProjects/MVC/extbase.git/commit/a0c1a47a90c3064396dc4a3e058826c7a897ebb0





More information about the TYPO3-project-typo3v4mvc mailing list