There is a Magento 2 plugin that need to use few non PSR-4 classes. (It is a code shared with different projects.) It is not possible to use php magento -vvv setup:di:compile
because that classes cannot be found. Is there a standard place in Magento 2 to declare custom autoloader for a plugin?
P.S.
I found only possibility to use registration.php
, but I am told this is an ugly solution.