Skip to content

ajbonner/magento-composer-autoload

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Magento Composer Autoload

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 [email protected].

Requirements

  • PHP 7.2+
  • Magento CE 1.9.3.9+ (with PHP 7.2 Patch applied)

About

Hack to make the magento autoloader composer vendor dir aware

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages