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

Adrien Crivelli adrien.crivelli at gmail.com
Wed Dec 5 09:06:37 CET 2012


Hi,

Big thanks to both of you for your answer, it will save me lots of time
when I'll go back to that codebase :-)

Thx again !


On 30 November 2012 20:39, Oliver Klee <typo3-german-02 at oliverklee.de>wrote:

> 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.
>
>
> Oli
> --
> Certified TYPO3 Integrator | TYPO3 Security Team Member
> _______________________________________________
> TYPO3-project-typo3v4mvc mailing list
> TYPO3-project-typo3v4mvc at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc
>


More information about the TYPO3-project-typo3v4mvc mailing list