authserver/testCAS/public/index.php
changeset 0 1afc9d2ab94d
equal deleted inserted replaced
-1:000000000000 0:1afc9d2ab94d
       
     1 <?php
       
     2 /**
       
     3  * Laravel - A PHP Framework For Web Artisans
       
     4  *
       
     5  * @package  Laravel
       
     6  * @author   Taylor Otwell <taylorotwell@gmail.com>
       
     7  */
       
     8 
       
     9 /*
       
    10 |--------------------------------------------------------------------------
       
    11 | Register The Auto Loader
       
    12 |--------------------------------------------------------------------------
       
    13 |
       
    14 | Composer provides a convenient, automatically generated class loader for
       
    15 | our application. We just need to utilize it! We'll simply require it
       
    16 | into the script here so that we don't have to worry about manual
       
    17 | loading any of our classes later on. It feels nice to relax.
       
    18 |
       
    19 */
       
    20 
       
    21 require __DIR__.'/../bootstrap/autoload.php';
       
    22 
       
    23 /*
       
    24 |--------------------------------------------------------------------------
       
    25 | Turn On The Lights
       
    26 |--------------------------------------------------------------------------
       
    27 |
       
    28 | We need to illuminate PHP development, so let us turn on the lights.
       
    29 | This bootstraps the framework and gets it ready for use, then it
       
    30 | will load up this application so that we can run it and send
       
    31 | the responses back to the browser and delight our users.
       
    32 |
       
    33 */
       
    34 
       
    35 $app = require_once __DIR__.'/../bootstrap/app.php';
       
    36 
       
    37 /*
       
    38 |--------------------------------------------------------------------------
       
    39 | Run The Application
       
    40 |--------------------------------------------------------------------------
       
    41 |
       
    42 | Once we have the application, we can handle the incoming request
       
    43 | through the kernel, and send the associated response back to
       
    44 | the client's browser allowing them to enjoy the creative
       
    45 | and wonderful application we have prepared for them.
       
    46 |
       
    47 */
       
    48 
       
    49 $kernel = $app->make('Illuminate\Contracts\Http\Kernel');
       
    50 
       
    51 $response = $kernel->handle(
       
    52     $request = Illuminate\Http\Request::capture()
       
    53 );
       
    54 
       
    55 $response->send();
       
    56 
       
    57 $kernel->terminate($request, $response);