diff --git a/tests/_files/appserver_initial_context.xml b/tests/_files/appserver_initial_context.xml
index e44210a13..5bd19e78b 100644
--- a/tests/_files/appserver_initial_context.xml
+++ b/tests/_files/appserver_initial_context.xml
@@ -1,5 +1,4 @@
-
\ No newline at end of file
diff --git a/var/scripts/bootstrap.php b/var/scripts/bootstrap.php
index 53b374892..a8a1a6317 100644
--- a/var/scripts/bootstrap.php
+++ b/var/scripts/bootstrap.php
@@ -32,4 +32,16 @@
// set the new include path
set_include_path(get_include_path() . PATH_SEPARATOR . implode(PATH_SEPARATOR, $paths));
-require APPSERVER_BP . DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR . 'autoload.php';
+// define application servers base dir
+define('SERVER_BASEDIR', APPSERVER_BP . DIRECTORY_SEPARATOR);
+
+// query whether we've a composer autoloader defined or not
+if (!file_exists($autoloaderFile = SERVER_BASEDIR . 'vendor' . DIRECTORY_SEPARATOR . 'autoload.php')) {
+ throw new \Exception(sprintf('Can\' find default autoloader %s', $autoloaderFile));
+}
+
+// define the autoloader file
+define('SERVER_AUTOLOADER', $autoloaderFile);
+
+// initialize the composer autoloader
+require $autoloaderFile;
pFad - Phonifier reborn
Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies:
Alternative Proxy
pFad Proxy
pFad v3 Proxy
pFad v4 Proxy