[BUGFIX] ExtractorRegistry can not handle Extractors with same priority 02/36502/3
authorFabien Udriot <fabien.udriot@ecodev.ch>
Sat, 31 Jan 2015 13:24:11 +0000 (14:24 +0100)
committerPhilipp Gampe <philipp.gampe@typo3.org>
Sat, 31 Jan 2015 23:24:51 +0000 (00:24 +0100)
commit308d4f0ad139f5578ca0f4d93d3e306a638fa3cd
tree37df684fa04ba487b0e865f4b6fea37481518fc8
parent6acc2cb210d42a634f1ab464b363541cb21cc2a0
[BUGFIX] ExtractorRegistry can not handle Extractors with same priority

The ExtractorRegistry::getExtractors() overrides existing
instances with the same execution priority. There is no check
or notification about this. As instance, it could be that you
have a extractor for Local driver and an extractor for a remote
driver with the same execution priority, that is currently not possible.

The change set also keep in sync some part of the code with
the FileRenderRegistry which is very close to the Extractor Registry.

Change-Id: I42fdd3916410536a0b097d96cf833129f5359d72
Releases: master, 6.2
Resolves: #56727
Reviewed-on: http://review.typo3.org/36502
Reviewed-by: Frans Saris <franssaris@gmail.com>
Tested-by: Frans Saris <franssaris@gmail.com>
Reviewed-by: Philipp Gampe <philipp.gampe@typo3.org>
Tested-by: Philipp Gampe <philipp.gampe@typo3.org>
typo3/sysext/core/Classes/Resource/Index/ExtractorRegistry.php
typo3/sysext/core/Tests/Unit/Resource/Index/ExtractorRegistryTest.php [new file with mode: 0644]
typo3/sysext/core/Tests/Unit/Resource/Rendering/RendererRegistryTest.php