X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=index.php;h=ddc851cd4e36654e02d6f3d73cf6e68270ffeef1;hb=bb6d70941d1a978beeb645d8450b7e4710d6beb2;hp=43bfd3800e684429dcf82196d3b5f76d9cf96220;hpb=7ee8bdafc53a88fe51f233e14169bb4af0d376ab;p=friendica.git diff --git a/index.php b/index.php index 43bfd3800e..ddc851cd4e 100644 --- a/index.php +++ b/index.php @@ -4,12 +4,15 @@ * Friendica */ -use Friendica\App; +use Friendica\Factory; -require_once 'boot.php'; +if (!file_exists(__DIR__ . '/vendor/autoload.php')) { + die('Vendor path not found. Please execute "bin/composer.phar --no-dev install" on the command line in the web root.'); +} -// We assume that the index.php is called by a frontend process -// The value is set to "true" by default in App -$a = new App(__DIR__, false); +require __DIR__ . '/vendor/autoload.php'; + +$a = Factory\DependencyFactory::setUp('index', __DIR__, false); $a->runFrontend(); +