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.

console.php 777B

12345678910111213141516171819202122
  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. $pconfig = Factory\ConfigFactory::createPConfig($configCache);
  13. $logger = Factory\LoggerFactory::create('console', $config);
  14. $profiler = Factory\ProfilerFactory::create($logger, $config);
  15. $a = new Friendica\App($config, $logger, $profiler);
  16. \Friendica\BaseObject::setApp($a);
  17. (new Friendica\Core\Console($argv))->execute();