Composer Registrar Composer Plugin for Magento 2
This module add a global registration.php that replace the default glob search performed for each request to discover the components not installed from composer.
Setup
Magento 2 Open Source or Commerce edition is required.
Composer installation
Run the following composer command:
composer require opengento/composer-registration-plugin
Features
This composer plugin will generate a global registration.php
file for components in app & setup directories.
Documentation
In order to optimize you project, your autoload section should be the same:
{
"autoload": {
"psr-4": {
"Magento\\Setup\\": "setup/src/Magento/Setup/",
"Zend\\Mvc\\Controller\\": "setup/src/Zend/Mvc/Controller/"
}
}
}
Support
Raise a new request to the issue tracker.
Authors
License
This project is licensed under the MIT License - see the LICENSE details.
That's all folks!