livecoding-console/bin/console

23 lines
503 B
Plaintext
Raw Permalink Normal View History

2015-07-07 13:01:17 +02:00
#!/usr/bin/env php
<?php
require_once __DIR__ . '/../vendor/autoload.php';
use Deblan\Application;
2015-07-13 22:32:34 +02:00
use Deblan\ConfigLoader;
2015-07-14 00:19:31 +02:00
use Guzzle\Service\Client;
use Deblan\Helper\LiveCoding;
2015-07-07 13:01:17 +02:00
$app = new Application('LiveCoding CLI', '1');
$app->chdir(__DIR__.'/../');
$app->addCommandsPath('src/Deblan/Command/', 'Deblan\\Command');
$app->loadCommands();
2015-07-13 22:32:34 +02:00
$app->setConfigLoader(new ConfigLoader());
2015-07-14 00:19:31 +02:00
$app->getContainer()['livecoding'] = function() use ($app) {
return new LiveCoding($app);
};
2015-07-07 13:01:17 +02:00
$app->run();