Skip to content

Commit 7668a99

Browse files
committed
Fixed heavy init breakages made in last commit
1 parent ed88c62 commit 7668a99

5 files changed

Lines changed: 35 additions & 14 deletions

File tree

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ dist: trusty
22
sudo: false
33
language: php
44
php:
5-
- 7.0.7
5+
- 7.0.20
66
- 7.1.9
77

88
cache:

artisan

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,15 @@ define('LARAVEL_START', microtime(true));
55

66
/*
77
|--------------------------------------------------------------------------
8-
| Register The Auto Loader
8+
| Initialize The App
99
|--------------------------------------------------------------------------
1010
|
11-
| Composer provides a convenient, automatically generated class loader
12-
| for our application. We just need to utilize it! We'll require it
13-
| into the script here so that we do not have to worry about the
14-
| loading of any our classes "manually". Feels great to relax.
11+
| We need to get things going before we start up the app.
12+
| The init file loads everything in, in the correct order.
1513
|
1614
*/
1715

18-
require __DIR__.'/vendor/autoload.php';
16+
require __DIR__.'/bootstrap/init.php';
1917

2018
$app = require_once __DIR__.'/bootstrap/app.php';
2119

bootstrap/init.php

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?php
2+
3+
/*
4+
|--------------------------------------------------------------------------
5+
| Load Our Own Helpers
6+
|--------------------------------------------------------------------------
7+
|
8+
| This custom function loads any helpers, before the Laravel Framework
9+
| is built so we can override any helpers as we please.
10+
|
11+
*/
12+
require __DIR__.'/../app/helpers.php';
13+
14+
/*
15+
|--------------------------------------------------------------------------
16+
| Register The Composer Auto Loader
17+
|--------------------------------------------------------------------------
18+
|
19+
| Composer provides a convenient, automatically generated class loader
20+
| for our application. We just need to utilize it! We'll require it
21+
| into the script here so that we do not have to worry about the
22+
| loading of any our classes "manually". Feels great to relax.
23+
|
24+
*/
25+
require __DIR__.'/../vendor/autoload.php';

phpunit.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<phpunit backupGlobals="false"
33
backupStaticAttributes="false"
4-
bootstrap="bootstrap/autoload.php"
4+
bootstrap="bootstrap/init.php"
55
colors="true"
66
convertErrorsToExceptions="true"
77
convertNoticesToExceptions="true"

public/index.php

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,15 @@
1111

1212
/*
1313
|--------------------------------------------------------------------------
14-
| Register The Auto Loader
14+
| Initialize The App
1515
|--------------------------------------------------------------------------
1616
|
17-
| Composer provides a convenient, automatically generated class loader for
18-
| our application. We just need to utilize it! We'll simply require it
19-
| into the script here so that we don't have to worry about manual
20-
| loading any of our classes later on. It feels great to relax.
17+
| We need to get things going before we start up the app.
18+
| The init file loads everything in, in the correct order.
2119
|
2220
*/
2321

24-
require __DIR__.'/../vendor/autoload.php';
22+
require __DIR__.'/../bootstrap/init.php';
2523

2624
/*
2725
|--------------------------------------------------------------------------

0 commit comments

Comments
 (0)