Commit 1487e775 authored by Morton Jonuschat's avatar Morton Jonuschat Committed by Christian Kuhn
Browse files

[FOLLOWUP][TASK] Document DI happening before initializeObject()

Clarify that the changes to dependency injection only affect domain
models retrieved from the database backend.

Resolves: #67401
Related: #67274
Related: #67272
Related: #66473
Releases: master
Change-Id: I04876b77c3ae5d061bae4b6b238d820a7f875740
Reviewed-on: http://review.typo3.org/40213


Reviewed-by: Nicole Cordes's avatarNicole Cordes <typo3@cordes.co>
Tested-by: Nicole Cordes's avatarNicole Cordes <typo3@cordes.co>
Reviewed-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
parent 5f85d0cb
......@@ -5,9 +5,9 @@ Important: #67401 - Dependency Injection is now done before initializeObject()
Description
===========
Formerly ``initializeObject()`` was called before the dependencies were injected. This behavior didn't match the documentation_.
Formerly ``initializeObject()`` was called before the dependencies were injected when retrieving an Extbase Domain Model. This behavior didn't match the documentation_ nor the behavior when using the ``ObjectManager``.
With TYPO3 CMS 7.3 this has been changed. Dependency injection using ``@inject`` annotations and ``inject*()`` methods is now performed **before** calling ``initializeObject()``.
With TYPO3 CMS 7.3 this has been changed, dependency injection using ``@inject`` annotations and ``inject*()`` methods is now performed **before** calling ``initializeObject()`` when retrieving Domain Models.
This may have impact on extensions that are relying on the reversed call order. In these cases adjustments are required to take into account that the injected objects are available.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment