Restore autoloader and bootstrapper
There was no real need to change this from what it was
This commit is contained in:
parent
9d94271977
commit
babf8f05a7
24
artisan
24
artisan
|
|
@ -1,32 +1,20 @@
|
|||
#!/usr/bin/env php
|
||||
<?php
|
||||
|
||||
define('LARAVEL_START', microtime(true));
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Bootstrap dependencies
|
||||
| Register The Auto Loader
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| We use a custom bootstrap autoloader to load some October dependencies
|
||||
| first, before bringing in all dependencies from Composer.
|
||||
| Composer provides a convenient, automatically generated class loader
|
||||
| for our application. We just need to utilize it! We'll require it
|
||||
| into the script here so that we do not have to worry about the
|
||||
| loading of any our classes "manually". Feels great to relax.
|
||||
|
|
||||
*/
|
||||
|
||||
require __DIR__.'/bootstrap/autoload.php';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Turn On The Lights
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| We need to illuminate PHP development, so let us turn on the lights.
|
||||
| This bootstraps the framework and gets it ready for use, then it
|
||||
| will load up this application so that we can run it and send
|
||||
| the responses back to the browser and delight our users.
|
||||
|
|
||||
*/
|
||||
|
||||
$app = require_once __DIR__.'/bootstrap/app.php';
|
||||
|
||||
/*
|
||||
|
|
@ -40,7 +28,7 @@ $app = require_once __DIR__.'/bootstrap/app.php';
|
|||
|
|
||||
*/
|
||||
|
||||
$kernel = $app->make(Illuminate\Contracts\Console\Kernel::class);
|
||||
$kernel = $app->make('Illuminate\Contracts\Console\Kernel');
|
||||
|
||||
$status = $kernel->handle(
|
||||
$input = new Symfony\Component\Console\Input\ArgvInput,
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
define('LARAVEL_START', microtime(true));
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Register Core Helpers
|
||||
|
|
|
|||
21
index.php
21
index.php
|
|
@ -6,15 +6,12 @@
|
|||
* @author Alexey Bobkov, Samuel Georges
|
||||
*/
|
||||
|
||||
define('LARAVEL_START', microtime(true));
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Bootstrap dependencies
|
||||
| Register composer
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| We use a custom bootstrap autoloader to load some October dependencies
|
||||
| first, before bringing in all dependencies from Composer.
|
||||
| Composer provides a generated class loader for the application.
|
||||
|
|
||||
*/
|
||||
|
||||
|
|
@ -22,13 +19,10 @@ require __DIR__.'/bootstrap/autoload.php';
|
|||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Turn On The Lights
|
||||
| Load framework
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| We need to illuminate PHP development, so let us turn on the lights.
|
||||
| This bootstraps the framework and gets it ready for use, then it
|
||||
| will load up this application so that we can run it and send
|
||||
| the responses back to the browser and delight our users.
|
||||
| This bootstraps the framework and loads up this application.
|
||||
|
|
||||
*/
|
||||
|
||||
|
|
@ -36,13 +30,10 @@ $app = require_once __DIR__.'/bootstrap/app.php';
|
|||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Run The Application
|
||||
| Process request
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Once we have the application, we can handle the incoming request
|
||||
| through the kernel, and send the associated response back to
|
||||
| the client's browser allowing them to enjoy the creative
|
||||
| and wonderful application we have prepared for them.
|
||||
| Execute the request and send the response back to the client.
|
||||
|
|
||||
*/
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<phpunit
|
||||
backupGlobals="false"
|
||||
<phpunit backupGlobals="false"
|
||||
backupStaticAttributes="false"
|
||||
bootstrap="tests/bootstrap.php"
|
||||
colors="true"
|
||||
|
|
@ -1,4 +1,10 @@
|
|||
<?php
|
||||
|
||||
/*
|
||||
* October autoloader
|
||||
*/
|
||||
require __DIR__ . '/../bootstrap/autoload.php';
|
||||
|
||||
/*
|
||||
* Fallback autoloader
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in New Issue