From ed7bada71eb7e5d1c2953e94abb47b531781306d Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Mon, 24 Dec 2018 09:56:48 -0500 Subject: [PATCH] Move Composer autoload require out of boot.php --- bin/auth_ejabberd.php | 2 +- bin/console.php | 2 +- bin/daemon.php | 2 +- bin/worker.php | 2 +- boot.php | 2 -- index.php | 6 ++---- 6 files changed, 6 insertions(+), 10 deletions(-) diff --git a/bin/auth_ejabberd.php b/bin/auth_ejabberd.php index fc57a7420..e8a7b4963 100755 --- a/bin/auth_ejabberd.php +++ b/bin/auth_ejabberd.php @@ -49,7 +49,7 @@ $directory = realpath($directory . DIRECTORY_SEPARATOR . ".."); chdir($directory); -require_once "boot.php"; +require dirname(__DIR__) . '/vendor/autoload.php'; $a = new App(dirname(__DIR__)); diff --git a/bin/console.php b/bin/console.php index 9c25279d3..c39df953f 100755 --- a/bin/console.php +++ b/bin/console.php @@ -1,7 +1,7 @@ #!/usr/bin/env php runFrontend();