ajbonner/magento-composer-autoload

Extension of Magento's class autoloader making it composer vendor library aware

0.3.0 2019-01-31 20:50 UTC

This package is not auto-updated.

Last update: 2024-10-26 13:58:18 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)