[FEATURE] Extract dependency ordering out of DependencyResolver 55/39955/13
authorMarkus Klein <markus.klein@typo3.org>
Thu, 4 Jun 2015 20:34:33 +0000 (22:34 +0200)
committerBenjamin Mack <benni@typo3.org>
Mon, 29 Jun 2015 13:59:01 +0000 (15:59 +0200)
commit5f97ebe7450d3ed2899c6be2141283cc8edac02d
tree2bbfdb8ac77b7acd57ca1249a6fb332a336c69a9
parent6ea4f290564732cb04b36dcd24a0bad5ec20f98f
[FEATURE] Extract dependency ordering out of DependencyResolver

The DependencyOrderingService allows to resolve dependency lists
containing before/after dependency specifications into an ordered
list. This is useful for all sorts of registration APIs like hooks.

The code is extracted from the existing DependencyResolver for packages.
The DependencyResolver is adjusted to use the DepencyOrderingService.

Resolves: #67293
Releases: master
Change-Id: Ic4cb1c7cfbcc8c4a0ebe2946eb5824d7983e711c
Reviewed-on: http://review.typo3.org/39955
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Xavier Perseguers <xavier@typo3.org>
Tested-by: Xavier Perseguers <xavier@typo3.org>
Reviewed-by: Benjamin Mack <benni@typo3.org>
Tested-by: Benjamin Mack <benni@typo3.org>
typo3/sysext/core/Classes/Package/DependencyResolver.php
typo3/sysext/core/Classes/Service/DependencyOrderingService.php [new file with mode: 0644]
typo3/sysext/core/Documentation/Changelog/master/Feature-67293-DependencyOrderingService.rst [new file with mode: 0644]
typo3/sysext/core/Tests/Unit/Package/DependencyResolverTest.php
typo3/sysext/core/Tests/Unit/Package/PackageManagerTest.php
typo3/sysext/core/Tests/Unit/Service/DependencyOrderingServiceTest.php [new file with mode: 0644]