Skip to content
Snippets Groups Projects
Commit 9d90dfd9 authored by Demian Katz's avatar Demian Katz Committed by GitHub
Browse files

Drop support for ZF2_PATH; update message.

- Zend Framework 2 references are out of date; using an external library location no longer makes sense.
parent 4e87f013
No related merge requests found
......@@ -65,18 +65,8 @@ if (file_exists('vendor/autoload.php')) {
$loader = include 'vendor/autoload.php';
}
// Support for ZF2_PATH environment variable
if ($zf2Path = getenv('ZF2_PATH')) {
if (isset($loader)) {
$loader->add('Zend', $zf2Path . '/Zend');
} else {
include $zf2Path . '/Zend/Loader/AutoloaderFactory.php';
AutoloaderFactory::factory();
}
}
if (!class_exists('Zend\Loader\AutoloaderFactory')) {
throw new RuntimeException('Unable to load ZF2.');
throw new RuntimeException('Unable to load Zend Framework autoloader.');
}
// Run the application!
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment