From 9d90dfd91b0e040086142a2f40603b06bd0bae54 Mon Sep 17 00:00:00 2001
From: Demian Katz <demian.katz@villanova.edu>
Date: Wed, 11 Jul 2018 10:18:26 -0400
Subject: [PATCH] Drop support for ZF2_PATH; update message.

- Zend Framework 2 references are out of date; using an external library location no longer makes sense.
---
 public/index.php | 12 +-----------
 1 file changed, 1 insertion(+), 11 deletions(-)

diff --git a/public/index.php b/public/index.php
index 5282d0e679d..e7013561ed8 100644
--- a/public/index.php
+++ b/public/index.php
@@ -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!
-- 
GitLab