Bläddra i källkod

Move Composer autoload require out of boot.php

tags/2019.01
Hypolite Petovan 1 år sedan
förälder
incheckning
ed7bada71e
6 ändrade filer med 6 tillägg och 10 borttagningar
  1. +1
    -1
      bin/auth_ejabberd.php
  2. +1
    -1
      bin/console.php
  3. +1
    -1
      bin/daemon.php
  4. +1
    -1
      bin/worker.php
  5. +0
    -2
      boot.php
  6. +2
    -4
      index.php

+ 1
- 1
bin/auth_ejabberd.php Visa fil

@@ -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__));



+ 1
- 1
bin/console.php Visa fil

@@ -1,7 +1,7 @@
#!/usr/bin/env php
<?php

include_once dirname(__DIR__) . '/boot.php';
require dirname(__DIR__) . '/vendor/autoload.php';

$a = new Friendica\App(dirname(__DIR__));
\Friendica\BaseObject::setApp($a);


+ 1
- 1
bin/daemon.php Visa fil

@@ -30,7 +30,7 @@ if (!file_exists("boot.php") && (sizeof($_SERVER["argv"]) != 0)) {
chdir($directory);
}

require_once "boot.php";
require dirname(__DIR__) . '/vendor/autoload.php';

$a = new App(dirname(__DIR__));



+ 1
- 1
bin/worker.php Visa fil

@@ -26,7 +26,7 @@ if (!file_exists("boot.php") && (sizeof($_SERVER["argv"]) != 0)) {
chdir($directory);
}

require_once "boot.php";
require dirname(__DIR__) . '/vendor/autoload.php';

$a = new App(dirname(__DIR__));



+ 0
- 2
boot.php Visa fil

@@ -17,8 +17,6 @@
* easily as email does today.
*/

require_once __DIR__ . DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR . 'autoload.php';

use Friendica\App;
use Friendica\BaseObject;
use Friendica\Core\Addon;


+ 2
- 4
index.php Visa fil

@@ -4,12 +4,10 @@
* Friendica
*/

use Friendica\App;

require_once 'boot.php';
require dirname(__DIR__) . '/vendor/autoload.php';

// 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);
$a = new Friendica\App(__DIR__, false);

$a->runFrontend();

Laddar…
Avbryt
Spara