Skip to content

Instantly share code, notes, and snippets.

@alex-phillips
Last active August 29, 2015 14:16
Show Gist options
  • Save alex-phillips/73177c1ea790e2004b8c to your computer and use it in GitHub Desktop.
Save alex-phillips/73177c1ea790e2004b8c to your computer and use it in GitHub Desktop.
Sample Titon console app
<?hh
require_once('./vendor/autoload.php');
use Titon\Console\Kernel;
use Titon\Console\Console;
use Titon\Console\Input;
use Titon\Console\Output;
use Titon\Kernel\Middleware\Pipeline;
$app = new Console();
$app->addCommand(new \Titon\Test\Stub\Console\CommandStub());
$kernel = new Kernel($app, new Pipeline());
$kernel->run(new Input(), new Output());
$kernel->terminate();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment