X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=bin%2Fconsole.php;h=410eabda094639db0d3d06a9a8eb41ec92220464;hb=5e3a55915d7fdd554d711b2b5b619552a492c090;hp=e7b1786de74c580a141c54d9a1bec9216238929f;hpb=1e0e1674f2aeef54c52790946cfd61a199cb2042;p=friendica.git diff --git a/bin/console.php b/bin/console.php index e7b1786de7..410eabda09 100755 --- a/bin/console.php +++ b/bin/console.php @@ -3,16 +3,9 @@ require dirname(__DIR__) . '/vendor/autoload.php'; -use Friendica\Core\Config; use Friendica\Factory; -use Friendica\Util\BasePath; -$basedir = BasePath::create(dirname(__DIR__)); -$configLoader = new Config\ConfigCacheLoader($basedir); -$config = Factory\ConfigFactory::createCache($configLoader); -$logger = Factory\LoggerFactory::create('console', $config); - -$a = new Friendica\App($config, $logger); +$a = Factory\DependencyFactory::setUp('console', dirname(__DIR__)); \Friendica\BaseObject::setApp($a); (new Friendica\Core\Console($argv))->execute();