chdir($directory);
-require_once "boot.php";
+require dirname(__DIR__) . '/vendor/autoload.php';
$a = new App(dirname(__DIR__));
#!/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);
chdir($directory);
}
-require_once "boot.php";
+require dirname(__DIR__) . '/vendor/autoload.php';
$a = new App(dirname(__DIR__));
chdir($directory);
}
-require_once "boot.php";
+require dirname(__DIR__) . '/vendor/autoload.php';
$a = new App(dirname(__DIR__));
* 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;
* 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();