diff options
author | Remi Collet <fedora@famillecollet.com> | 2015-08-04 14:18:53 +0200 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2015-08-04 14:18:53 +0200 |
commit | c2bd5a534cf53d76e1f207c60105911418d34824 (patch) | |
tree | 48fab81452d0b0318bd30d4ccf950546f78bb6a4 /php-zendframework-zend-loader-autoload.php |
php-zendframework-zend-loader: 2.5.1 (new, wip)
Diffstat (limited to 'php-zendframework-zend-loader-autoload.php')
-rw-r--r-- | php-zendframework-zend-loader-autoload.php | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/php-zendframework-zend-loader-autoload.php b/php-zendframework-zend-loader-autoload.php new file mode 100644 index 0000000..659144a --- /dev/null +++ b/php-zendframework-zend-loader-autoload.php @@ -0,0 +1,15 @@ +<?php +/* +Simple autoloader for Zend Framework +Inspired from https://github.com/zendframework/ZendSkeletonApplication + +Set autoregister_zf for Zend Framework +Set fallback_autoloader for dependencies which are PSR-0 compliant +*/ +require_once __DIR__ . '/Loader/AutoloaderFactory.php'; +Zend\Loader\AutoloaderFactory::factory(array( + 'Zend\Loader\StandardAutoloader' => array( + 'fallback_autoloader' => true, + 'autoregister_zf' => true + ) +)); |