X-Git-Url: http://git.inspyration.org/?a=blobdiff_plain;f=init_autoloader.php;fp=init_autoloader.php;h=c9beed6bb5b9eb33977db670eaa9d4c004cfd430;hb=4261f12838b8ac6140ecd483e873b3a79a4d1b91;hp=0000000000000000000000000000000000000000;hpb=ac6e9b0e28280704afeda3061ed40f2821b4e03e;p=zf2.biz%2Fapplication_blanche.git diff --git a/init_autoloader.php b/init_autoloader.php new file mode 100644 index 0000000..c9beed6 --- /dev/null +++ b/init_autoloader.php @@ -0,0 +1,33 @@ +add('Zend', $zf2Path . '/Zend'); + } else { + include $zf2Path . '/Zend/Loader/AutoloaderFactory.php'; + Zend\Loader\AutoloaderFactory::factory(array( + 'Zend\Loader\StandardAutoloader' => array( + 'autoregister_zf' => true + ) + )); + } +} + +if (!class_exists('Zend\Loader\AutoloaderFactory')) { + throw new RuntimeException('Unable to load ZF2. Run `php composer.phar install` or define a ZF2_PATH environment variable.'); +}