Commit 8d41fb26 authored by Morton Jonuschat's avatar Morton Jonuschat Committed by Andreas Fernandez
Browse files

[TASK] Document DI happening before initializeObject()

Changes in the execution of dependency injection and object
initialization have been documented as an important change.

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


Reviewed-by: Mathias Brodala's avatarMathias Brodala <mbrodala@pagemachine.de>
Tested-by: Mathias Brodala's avatarMathias Brodala <mbrodala@pagemachine.de>
Reviewed-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Andreas Fernandez's avatarAndreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez's avatarAndreas Fernandez <typo3@scripting-base.de>
parent e05f0f1f
==============================================================================
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_.
With TYPO3 CMS 7.3 this has been changed. Dependency injection using ``@inject`` annotations and ``inject*()`` methods is now performed **before** calling ``initializeObject()``.
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.
.. _documentation: http://wiki.typo3.org/Dependency_Injection#initializeObject.28.29_as_object_lifecycle_method
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