├── modman ├── README.md └── app ├── code └── community │ └── Eschrade │ └── Autoloader │ ├── Model │ └── Autoloader.php │ └── etc │ └── config.xml └── etc └── modules └── Eschrade_Autoloader.xml /modman: -------------------------------------------------------------------------------- 1 | #Eschrade_Autoloader 2 | app/code/community/Eschrade/Autoloader 3 | app/etc/modules/Eschrade_Autoloader.xml -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | This is a simple module that allows you to use PHP 5.3 namespaced code in Magento 1. The most typical use for this will be if you are using a namespaced library in /lib in a Magento module. This module injects itself at controller_front_init_before and will be called before the native autoloader, but will only autoload namespaced classes thus leaving normal autoloading alone. 2 | -------------------------------------------------------------------------------- /app/code/community/Eschrade/Autoloader/Model/Autoloader.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Eschrade_Autoloader_Model 7 | 8 | 9 | 10 | 11 | 12 | 13 | eschrade_autoloader/autoloader 14 | addAutoloader 15 | 16 | 17 | 18 | 19 | 20 | 21 | eschrade_autoloader/autoloader 22 | addAutoloader 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /app/etc/modules/Eschrade_Autoloader.xml: -------------------------------------------------------------------------------- 1 | 2 | 22 | 23 | 24 | 25 | true 26 | community 27 | 28 | 29 | 30 | --------------------------------------------------------------------------------