projects
/
zf2.biz
/
application_blanche.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update init_autoloader.php
[zf2.biz/application_blanche.git]
/
init_autoloader.php
diff --git
a/init_autoloader.php
b/init_autoloader.php
index
d9f6042
..
5552eea
100644
(file)
--- a/
init_autoloader.php
+++ b/
init_autoloader.php
@@
-22,7
+22,10
@@
if (file_exists('vendor/autoload.php')) {
}
// Support for ZF2_PATH environment variable or git submodule
}
// Support for ZF2_PATH environment variable or git submodule
-if (($zf2Path = getenv('ZF2_PATH') ?: (is_dir('vendor/ZF2/library') ? 'vendor/ZF2/library' : false)) !== false) {
+if (($zf2Path = getenv('ZF2_PATH') ?:
+ // Support for zf2_path ini directive
+ (get_cfg_var('zf2_path') ?:
+ (is_dir('vendor/ZF2/library') ? 'vendor/ZF2/library' : false)) !== false)) {
if (isset($loader)) {
$loader->add('Zend', $zf2Path . '/Zend');
} else {
if (isset($loader)) {
$loader->add('Zend', $zf2Path . '/Zend');
} else {