Friendica Communications Platform (please note that this is a clone of the repository at github, issues are handled there) https://friendi.ca
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
594B

  1. #!/usr/bin/env php
  2. <?php
  3. require dirname(__DIR__) . '/vendor/autoload.php';
  4. use Friendica\Core\Config;
  5. use Friendica\Factory;
  6. use Friendica\Util\BasePath;
  7. $basedir = BasePath::create(dirname(__DIR__), $_SERVER);
  8. $configLoader = new Config\ConfigCacheLoader($basedir);
  9. $config = Factory\ConfigFactory::createCache($configLoader);
  10. $logger = Factory\LoggerFactory::create('console', $config);
  11. $profiler = Factory\ProfilerFactory::create($logger, $config);
  12. $a = new Friendica\App($config, $logger, $profiler);
  13. \Friendica\BaseObject::setApp($a);
  14. (new Friendica\Core\Console($argv))->execute();