projects
/
zf2.biz
/
galerie.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8d1e496
)
Check for ZF2_PATH env var when including ZF2 AutoloaderFactory
author
Evan Coury
<me@evancoury.com>
Sun, 18 Dec 2011 14:54:05 +0000
(07:54 -0700)
committer
Evan Coury
<me@evancoury.com>
Sun, 18 Dec 2011 14:54:05 +0000
(07:54 -0700)
public/index.php
patch
|
blob
|
history
diff --git
a/public/index.php
b/public/index.php
index
8c1df71
..
60730da
100644
(file)
--- a/
public/index.php
+++ b/
public/index.php
@@
-1,6
+1,6
@@
<?php
chdir(dirname(__DIR__));
-require_once 'vendor/ZendFramework/library/Zend/Loader/AutoloaderFactory.php';
+require_once (getenv('ZF2_PATH') ?: 'vendor/ZendFramework/library') . '/Zend/Loader/AutoloaderFactory.php';
Zend\Loader\AutoloaderFactory::factory(array('Zend\Loader\StandardAutoloader' => array()));
$appConfig = include 'config/application.config.php';