- Issue created by @kim.pepper
- First commit to issue fork.
- ๐ฎ๐นItaly mondrake ๐ฎ๐น
I think we should add a test to check if
DummyMimeTypeMapLoadedSubscriber
has an effect on the mapping. The legacy hook was already not processed by Sophron, but now that we have methods we should be able to process the event. This event will trigger 'core' changes, while the Sophron'sinitializeMap
will be specific to Sophron.In essence, the sequence should be:
a) the Sophron map is initialized in theDrupal\sophron\MimeMapManagerInterface
service,initializeMap
event is triggered and will process map changes according tofileeye/mimemap
primitives;
b) core triggers theMimeTypeMapLoadedEvent
event inMimeTypeMapFactory
and will process map changes according toMimeTypeMap
primitives (that are proxies to thefileeye/mimemap
ones via Sophron'sMimeMapManager
.A bit complicated but this would allow keeping Sophron as a separate MIME type mapping service not used for guessing purposes.