diff --git a/cubex b/cubex new file mode 100755 index 0000000..71ae8bb --- /dev/null +++ b/cubex @@ -0,0 +1,36 @@ +#!/usr/bin/env php +boot(); + +//Create a request object +$request = \Cubex\Http\Request::createConsoleRequest(); +$app->instance('request', $request); + +//Create a new console application +$console = \Cubex\Console\Console::withCubex($app); + +//Execute the command and retrieve the exit code +$exit = $console->run(); + +$app->shutdown(); + +exit($exit);