23 lines
503 B
PHP
Executable file
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();
|