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/bootstrap/app.php | 55 ++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 backyard/php-api/trunk/bootstrap/app.php (limited to 'backyard/php-api/trunk/bootstrap/app.php') diff --git a/backyard/php-api/trunk/bootstrap/app.php b/backyard/php-api/trunk/bootstrap/app.php new file mode 100644 index 0000000..f50a3f7 --- /dev/null +++ b/backyard/php-api/trunk/bootstrap/app.php @@ -0,0 +1,55 @@ +singleton( + 'Illuminate\Contracts\Http\Kernel', + 'App\Http\Kernel' +); + +$app->singleton( + 'Illuminate\Contracts\Console\Kernel', + 'App\Console\Kernel' +); + +$app->singleton( + 'Illuminate\Contracts\Debug\ExceptionHandler', + 'App\Exceptions\Handler' +); + +/* +|-------------------------------------------------------------------------- +| Return The Application +|-------------------------------------------------------------------------- +| +| This script returns the application instance. The instance is given to +| the calling script so we can separate the building of the instances +| from the actual running of the application and sending responses. +| +*/ + +return $app; -- cgit v1.2.3