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.

24 lines
800B

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