Last active
August 29, 2015 14:16
-
-
Save alex-phillips/73177c1ea790e2004b8c to your computer and use it in GitHub Desktop.
Sample Titon console app
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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