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
<?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,
@ -60,4 +48,4 @@ $status = $kernel->handle(
$kernel->terminate($input, $status);
exit($status);
exit($status);

View File

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

View File

@ -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.
|
*/

View File

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

View File

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