]> BookStack Code Mirror - bookstack/commitdiff
Fixed heavy init breakages made in last commit
authorDan Brown <redacted>
Sun, 19 Nov 2017 18:31:24 +0000 (18:31 +0000)
committerDan Brown <redacted>
Sun, 19 Nov 2017 18:31:24 +0000 (18:31 +0000)
.travis.yml
artisan
bootstrap/init.php [new file with mode: 0644]
phpunit.xml
public/index.php

index 12820cbe157252e748fb738ddde20a66cdf7d9fa..29727f488a9513d8c0fdbe622c5066e1f93fc702 100644 (file)
@@ -2,7 +2,7 @@ dist: trusty
 sudo: false
 language: php
 php:
-  - 7.0.7
+  - 7.0.20
   - 7.1.9
 
 cache:
diff --git a/artisan b/artisan
index d5c6aaf98542479db38a44dce76de952dbc34de6..dad16dcdefdee1989b99de8cddffffe06d10a381 100755 (executable)
--- a/artisan
+++ b/artisan
@@ -5,17 +5,15 @@ define('LARAVEL_START', microtime(true));
 
 /*
 |--------------------------------------------------------------------------
-| Register The Auto Loader
+| Initialize The App
 |--------------------------------------------------------------------------
 |
-| 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.
+| We need to get things going before we start up the app.
+| The init file loads everything in, in the correct order.
 |
 */
 
-require __DIR__.'/vendor/autoload.php';
+require __DIR__.'/bootstrap/init.php';
 
 $app = require_once __DIR__.'/bootstrap/app.php';
 
diff --git a/bootstrap/init.php b/bootstrap/init.php
new file mode 100644 (file)
index 0000000..7d9e43f
--- /dev/null
@@ -0,0 +1,25 @@
+<?php
+
+/*
+|--------------------------------------------------------------------------
+| Load Our Own Helpers
+|--------------------------------------------------------------------------
+|
+| This custom function loads any helpers, before the Laravel Framework
+| is built so we can override any helpers as we please.
+|
+*/
+require __DIR__.'/../app/helpers.php';
+
+/*
+|--------------------------------------------------------------------------
+| Register The Composer Auto Loader
+|--------------------------------------------------------------------------
+|
+| 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__.'/../vendor/autoload.php';
\ No newline at end of file
index 2e07cdbf8debab4f1200077251d68146f24d05fc..dbea76aa6eecdb44bb25948a495da36a445c2bbf 100644 (file)
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <phpunit backupGlobals="false"
          backupStaticAttributes="false"
-         bootstrap="bootstrap/autoload.php"
+         bootstrap="bootstrap/init.php"
          colors="true"
          convertErrorsToExceptions="true"
          convertNoticesToExceptions="true"
index 904bd999b9a1d371a310a4342db72867b3955aa0..ad378d7e071ae46d8873169bac808b874615536b 100644 (file)
@@ -11,17 +11,15 @@ define('LARAVEL_START', microtime(true));
 
 /*
 |--------------------------------------------------------------------------
-| Register The Auto Loader
+| Initialize The App
 |--------------------------------------------------------------------------
 |
-| Composer provides a convenient, automatically generated class loader for
-| our application. We just need to utilize it! We'll simply require it
-| into the script here so that we don't have to worry about manual
-| loading any of our classes later on. It feels great to relax.
+| We need to get things going before we start up the app.
+| The init file loads everything in, in the correct order.
 |
 */
 
-require __DIR__.'/../vendor/autoload.php';
+require __DIR__.'/../bootstrap/init.php';
 
 /*
 |--------------------------------------------------------------------------