Restore autoloader and bootstrapper

There was no real need to change this from what it was
This commit is contained in:
Samuel Georges 2020-02-27 20:01:10 +11:00
parent 9d94271977
commit babf8f05a7
5 changed files with 30 additions and 44 deletions

26
artisan
View File

@ -1,32 +1,20 @@
#!/usr/bin/env php #!/usr/bin/env php
<?php <?php
define('LARAVEL_START', microtime(true));
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
| Bootstrap dependencies | Register The Auto Loader
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
| |
| We use a custom bootstrap autoloader to load some October dependencies | Composer provides a convenient, automatically generated class loader
| first, before bringing in all dependencies from Composer. | 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'; 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'; $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( $status = $kernel->handle(
$input = new Symfony\Component\Console\Input\ArgvInput, $input = new Symfony\Component\Console\Input\ArgvInput,
@ -60,4 +48,4 @@ $status = $kernel->handle(
$kernel->terminate($input, $status); $kernel->terminate($input, $status);
exit($status); exit($status);

View File

@ -1,5 +1,7 @@
<?php <?php
define('LARAVEL_START', microtime(true));
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
| Register Core Helpers | Register Core Helpers

View File

@ -6,15 +6,12 @@
* @author Alexey Bobkov, Samuel Georges * @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 | Composer provides a generated class loader for the application.
| first, before bringing in all dependencies from Composer.
| |
*/ */
@ -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 loads up this application.
| 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.
| |
*/ */
@ -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 | Execute the request and send the response back to the client.
| 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.
| |
*/ */

View File

@ -1,14 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<phpunit <phpunit backupGlobals="false"
backupGlobals="false" backupStaticAttributes="false"
backupStaticAttributes="false" bootstrap="tests/bootstrap.php"
bootstrap="tests/bootstrap.php" colors="true"
colors="true" convertErrorsToExceptions="true"
convertErrorsToExceptions="true" convertNoticesToExceptions="true"
convertNoticesToExceptions="true" convertWarningsToExceptions="true"
convertWarningsToExceptions="true" processIsolation="false"
processIsolation="false" stopOnFailure="false"
stopOnFailure="false"
> >
<testsuites> <testsuites>
<testsuite name="October CMS Test Suite"> <testsuite name="October CMS Test Suite">

View File

@ -1,4 +1,10 @@
<?php <?php
/*
* October autoloader
*/
require __DIR__ . '/../bootstrap/autoload.php';
/* /*
* Fallback autoloader * Fallback autoloader
*/ */