[BUGFIX] ExtractorRegistry can not handle Extractors with same priority 55/36555/2
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:46:57 +0000 (00:46 +0100)
commitaba4e96bd14589ac781dbce24b5c23f58573113d
treeb4a7920cc0d45c1bf434c8e55e97b40420715c8e
parentfc32cfb48dc9c8ce5f6aa53571c0da77718ace95
[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/36555
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]