projects
/
zf2.biz
/
galerie.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Updated README to keep ordering of index.php.
[zf2.biz/galerie.git]
/
README.md
diff --git
a/README.md
b/README.md
index
f3fd2fa
..
f7d12e3
100644
(file)
--- 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:
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;
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:
AutoloaderFactory::factory();
For modules/Application/Module.php add: