mirror of
https://github.com/friendica/friendica
synced 2024-11-10 03:42:53 +00:00
19 lines
594 B
PHP
Executable file
19 lines
594 B
PHP
Executable file
#!/usr/bin/env php
|
|
<?php
|
|
|
|
require dirname(__DIR__) . '/vendor/autoload.php';
|
|
|
|
use Friendica\Core\Config;
|
|
use Friendica\Factory;
|
|
use Friendica\Util\BasePath;
|
|
|
|
$basedir = BasePath::create(dirname(__DIR__), $_SERVER);
|
|
$configLoader = new Config\ConfigCacheLoader($basedir);
|
|
$config = Factory\ConfigFactory::createCache($configLoader);
|
|
$logger = Factory\LoggerFactory::create('console', $config);
|
|
$profiler = Factory\ProfilerFactory::create($logger, $config);
|
|
|
|
$a = new Friendica\App($config, $logger, $profiler);
|
|
\Friendica\BaseObject::setApp($a);
|
|
|
|
(new Friendica\Core\Console($argv))->execute();
|