X-Git-Url: http://git.inspyration.org/?a=blobdiff_plain;f=README.md;h=f7d12e3997da79fdb9b26f08bafafe56c1276d38;hb=8692c2b6696f98d699398035d748d882be07cc5f;hp=f3fd2fabaeac3dc73013c284767cff20867b7f0f;hpb=5aeb655136c743a3b62877b5436a443353f3359e;p=zf2.biz%2Fgalerie.git diff --git a/README.md b/README.md index f3fd2fa..f7d12e3 100644 --- a/README.md +++ b/README.md @@ -31,14 +31,14 @@ recommended that you use Composer due to the dependency management it provides. You will also need to update public/index.php and modules/Application/Module.php to enable autoloading. For public/index.php, replace lines 2-13 with: - chdir(dirname(__DIR__)); - require_once (getenv('ZF2_PATH') ?: 'vendor/ZendFramework/library') . '/Zend/Loader/AutoloaderFactory.php'; - use Zend\Loader\AutoloaderFactory, Zend\ServiceManager\ServiceManager, Zend\Mvc\Service\ServiceManagerConfiguration; - // setup autoloader + chdir(dirname(__DIR__)); + require_once (getenv('ZF2_PATH') ?: 'vendor/ZendFramework/library') . '/Zend/Loader/AutoloaderFactory.php'; + + // Setup autoloader AutoloaderFactory::factory(); For modules/Application/Module.php add: