mirror of
https://github.com/friendica/friendica
synced 2024-12-21 17:14:54 +01:00
Move Composer autoload require out of boot.php
This commit is contained in:
parent
acaee626f5
commit
ed7bada71e
6 changed files with 6 additions and 10 deletions
|
@ -49,7 +49,7 @@ $directory = realpath($directory . DIRECTORY_SEPARATOR . "..");
|
||||||
|
|
||||||
chdir($directory);
|
chdir($directory);
|
||||||
|
|
||||||
require_once "boot.php";
|
require dirname(__DIR__) . '/vendor/autoload.php';
|
||||||
|
|
||||||
$a = new App(dirname(__DIR__));
|
$a = new App(dirname(__DIR__));
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/usr/bin/env php
|
#!/usr/bin/env php
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
include_once dirname(__DIR__) . '/boot.php';
|
require dirname(__DIR__) . '/vendor/autoload.php';
|
||||||
|
|
||||||
$a = new Friendica\App(dirname(__DIR__));
|
$a = new Friendica\App(dirname(__DIR__));
|
||||||
\Friendica\BaseObject::setApp($a);
|
\Friendica\BaseObject::setApp($a);
|
||||||
|
|
|
@ -30,7 +30,7 @@ if (!file_exists("boot.php") && (sizeof($_SERVER["argv"]) != 0)) {
|
||||||
chdir($directory);
|
chdir($directory);
|
||||||
}
|
}
|
||||||
|
|
||||||
require_once "boot.php";
|
require dirname(__DIR__) . '/vendor/autoload.php';
|
||||||
|
|
||||||
$a = new App(dirname(__DIR__));
|
$a = new App(dirname(__DIR__));
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@ if (!file_exists("boot.php") && (sizeof($_SERVER["argv"]) != 0)) {
|
||||||
chdir($directory);
|
chdir($directory);
|
||||||
}
|
}
|
||||||
|
|
||||||
require_once "boot.php";
|
require dirname(__DIR__) . '/vendor/autoload.php';
|
||||||
|
|
||||||
$a = new App(dirname(__DIR__));
|
$a = new App(dirname(__DIR__));
|
||||||
|
|
||||||
|
|
2
boot.php
2
boot.php
|
@ -17,8 +17,6 @@
|
||||||
* easily as email does today.
|
* easily as email does today.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require_once __DIR__ . DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR . 'autoload.php';
|
|
||||||
|
|
||||||
use Friendica\App;
|
use Friendica\App;
|
||||||
use Friendica\BaseObject;
|
use Friendica\BaseObject;
|
||||||
use Friendica\Core\Addon;
|
use Friendica\Core\Addon;
|
||||||
|
|
|
@ -4,12 +4,10 @@
|
||||||
* Friendica
|
* Friendica
|
||||||
*/
|
*/
|
||||||
|
|
||||||
use Friendica\App;
|
require dirname(__DIR__) . '/vendor/autoload.php';
|
||||||
|
|
||||||
require_once 'boot.php';
|
|
||||||
|
|
||||||
// We assume that the index.php is called by a frontend process
|
// We assume that the index.php is called by a frontend process
|
||||||
// The value is set to "true" by default in App
|
// The value is set to "true" by default in App
|
||||||
$a = new App(__DIR__, false);
|
$a = new Friendica\App(__DIR__, false);
|
||||||
|
|
||||||
$a->runFrontend();
|
$a->runFrontend();
|
||||||
|
|
Loading…
Reference in a new issue