ajbonner / magento-composer-autoload
Extension of Magento's class autoloader making it composer vendor library aware
Installs: 9 245
Dependents: 2
Suggesters: 0
Security: 0
Stars: 14
Watchers: 6
Forks: 4
Open Issues: 0
Type:magento-module
Requires
- php: >=7.2.0
This package is not auto-updated.
Last update: 2024-11-23 14:23:21 UTC
README
Hack to make the magento autoloader composer vendor dir aware.
It's very likely you want to manage 3rd party libraries, or perhaps even Magento Extensions using composer. This can be difficult because composer uses its own class loading mechanism, typically creating a <application_root>/vendor/autoload.php file to initialise its environment.
This extension overrides Magento's default autoloader Varien_Autoload to load this file before initialising Magento so you can make use of composer managed code within Magento.
If you have already overridden this file, or have installed another extension that has, this extension will not work for you.
For example, this extension is not compatible with Aoe_ClassPathCache.
Any comments or questions can be directed to me on twitter @ajbonner, or via email aaron@aaronbonner.io.
Requirements
- PHP 7.2+
- Magento CE 1.9.3.9+ (with PHP 7.2 Patch applied)