livecoding-console/bin/console
2015-07-14 00:19:31 +02:00

23 lines
503 B
PHP
Executable file

#!/usr/bin/env php
<?php
require_once __DIR__ . '/../vendor/autoload.php';
use Deblan\Application;
use Deblan\ConfigLoader;
use Guzzle\Service\Client;
use Deblan\Helper\LiveCoding;
$app = new Application('LiveCoding CLI', '1');
$app->chdir(__DIR__.'/../');
$app->addCommandsPath('src/Deblan/Command/', 'Deblan\\Command');
$app->loadCommands();
$app->setConfigLoader(new ConfigLoader());
$app->getContainer()['livecoding'] = function() use ($app) {
return new LiveCoding($app);
};
$app->run();