From d7e113be4a56fa5aac3680fb5363168f545e5bce Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Mon, 16 Feb 2015 23:48:05 +0100 Subject: Added PHP API framework --- backyard/php-api/trunk/artisan | 51 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100755 backyard/php-api/trunk/artisan (limited to 'backyard/php-api/trunk/artisan') diff --git a/backyard/php-api/trunk/artisan b/backyard/php-api/trunk/artisan new file mode 100755 index 0000000..eb5e2bb --- /dev/null +++ b/backyard/php-api/trunk/artisan @@ -0,0 +1,51 @@ +#!/usr/bin/env php +make('Illuminate\Contracts\Console\Kernel'); + +$status = $kernel->handle( + $input = new Symfony\Component\Console\Input\ArgvInput, + new Symfony\Component\Console\Output\ConsoleOutput +); + +/* +|-------------------------------------------------------------------------- +| Shutdown The Application +|-------------------------------------------------------------------------- +| +| Once Artisan has finished running. We will fire off the shutdown events +| so that any final work may be done by the application before we shut +| down the process. This is the last thing to happen to the request. +| +*/ + +$kernel->terminate($input, $status); + +exit($status); -- cgit v1.2.3