2018-03-18 13:26:51 -04:00
|
|
|
#!/usr/bin/env php
|
2018-03-18 05:12:39 -04:00
|
|
|
<?php
|
|
|
|
|
2018-12-24 09:56:48 -05:00
|
|
|
require dirname(__DIR__) . '/vendor/autoload.php';
|
2018-03-18 05:12:39 -04:00
|
|
|
|
2019-02-03 16:46:50 -05:00
|
|
|
use Friendica\Core\Config;
|
|
|
|
use Friendica\Factory;
|
|
|
|
use Friendica\Util\BasePath;
|
2018-12-30 15:42:56 -05:00
|
|
|
|
2019-02-05 16:27:57 -05:00
|
|
|
$basedir = BasePath::create(dirname(__DIR__), $_SERVER);
|
2019-02-03 16:46:50 -05:00
|
|
|
$configLoader = new Config\ConfigCacheLoader($basedir);
|
|
|
|
$config = Factory\ConfigFactory::createCache($configLoader);
|
|
|
|
$logger = Factory\LoggerFactory::create('console', $config);
|
2019-02-16 17:18:24 -05:00
|
|
|
$profiler = Factory\ProfilerFactory::create($logger, $config);
|
2018-12-30 15:42:56 -05:00
|
|
|
|
2019-02-16 17:11:30 -05:00
|
|
|
$a = new Friendica\App($config, $logger, $profiler);
|
2018-03-18 05:12:39 -04:00
|
|
|
\Friendica\BaseObject::setApp($a);
|
|
|
|
|
2018-03-30 22:56:04 -04:00
|
|
|
(new Friendica\Core\Console($argv))->execute();
|