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.

19 lines
510B

  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__));
  8. $configLoader = new Config\ConfigCacheLoader($basedir);
  9. $config = Factory\ConfigFactory::createCache($configLoader);
  10. $logger = Factory\LoggerFactory::create('console', $config);
  11. $a = new Friendica\App($config, $logger);
  12. \Friendica\BaseObject::setApp($a);
  13. (new Friendica\Core\Console($argv))->execute();