Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TASK] Merge the package DependencyResolver into the PackageManager
The DependencyResolver and the PackageManager have a cyclic dependency to each other which is currently resolved using GeneralUtility::makeInstance. As the DependencyResolver is actually only used for the PackageManager – and relies on it – it can be merged, saving a lot of hassle. The DependencyResolver class is not marked @internal and is therefore deprecated. Releases: master Resolves: #84109 Change-Id: I71adccec3f13eb6de859f065937fbcde369758fe Reviewed-on: https://review.typo3.org/55977 Reviewed-by: Mathias Schreiber <mathias.schreiber@typo3.com> Tested-by: Mathias Schreiber <mathias.schreiber@typo3.com> Tested-by: TYPO3com <no-reply@typo3.com> Reviewed-by: Nicole Cordes <typo3@cordes.co> Tested-by: Nicole Cordes <typo3@cordes.co> Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch> Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
- Loading branch information
Showing
13 changed files
with
650 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
...ocumentation/Changelog/master/Deprecation-84109-DeprecateDependencyResolver.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
.. include:: ../../Includes.txt | ||
|
||
================================================== | ||
Deprecation: #84109 - Deprecate DependencyResolver | ||
================================================== | ||
|
||
See :issue:`84109` | ||
|
||
Description | ||
=========== | ||
|
||
The class :php:`\TYPO3\CMS\Core\Package\DependencyResolver` has been marked as | ||
deprecated as the code as been merged into :php:`\TYPO3\CMS\Core\Package\PackageManager`. | ||
Additionally the :php:`\TYPO3\CMS\Core\Package\PackageManager` method | ||
:php:`injectDependencyResolver` has been deprecated and the | ||
:php:`\TYPO3\CMS\Core\Package\PackageManager` triggers a deprecation log entry | ||
when the :php:`\TYPO3\CMS\Core\Service\DependencyOrderingService` is not injected | ||
through the constructor. | ||
|
||
Impact | ||
====== | ||
|
||
Installations that use :php:`\TYPO3\CMS\Core\Package\DependencyResolver` or create | ||
an own :php:`\TYPO3\CMS\Core\Package\PackageManager` instance will trigger a | ||
deprecation log entry. | ||
|
||
|
||
Affected Installations | ||
====================== | ||
|
||
All installations that use custom extensions that use the | ||
:php:`\TYPO3\CMS\Core\Package\DependencyResolver` class or create | ||
an own :php:`\TYPO3\CMS\Core\Package\PackageManager` instance. | ||
|
||
|
||
Migration | ||
========= | ||
|
||
Use :php:`\TYPO3\CMS\Core\Service\DependencyOrderingService` to manually sort packages. | ||
Pass :php:`\TYPO3\CMS\Core\Service\DependencyOrderingService` to the | ||
:php:`\TYPO3\CMS\Core\Package\PackageManager` constructor if a new instance is created. | ||
|
||
.. index:: PHP-API, FullyScanned |
Oops, something went wrong.