tweaking the core bootstrapper.
This commit is contained in:
parent
45538620da
commit
736351911f
|
@ -1,14 +1,19 @@
|
|||
<?php namespace Laravel;
|
||||
|
||||
/**
|
||||
* Define a multitude of framework constants. Mainly, we define
|
||||
* various file paths to core locations of the framework, as well
|
||||
* as a couple of file extensions.
|
||||
*/
|
||||
define('EXT', '.php');
|
||||
define('BLADE_EXT', '.blade.php');
|
||||
|
||||
define('APP_PATH', realpath($application).'/');
|
||||
define('BASE_PATH', realpath(str_replace('laravel', '', $laravel)).'/');
|
||||
define('PACKAGE_PATH', realpath($packages).'/');
|
||||
define('PUBLIC_PATH', realpath($public).'/');
|
||||
define('STORAGE_PATH', realpath($storage).'/');
|
||||
define('SYS_PATH', realpath($laravel).'/');
|
||||
|
||||
unset($laravel, $application, $config, $packages, $public, $storage);
|
||||
|
||||
define('CACHE_PATH', STORAGE_PATH.'cache/');
|
||||
define('CONFIG_PATH', APP_PATH.'config/');
|
||||
define('CONTROLLER_PATH', APP_PATH.'controllers/');
|
||||
|
@ -23,15 +28,13 @@
|
|||
define('SYS_VIEW_PATH', SYS_PATH.'views/');
|
||||
define('VIEW_PATH', APP_PATH.'views/');
|
||||
|
||||
define('EXT', '.php');
|
||||
define('BLADE_EXT', '.blade.php');
|
||||
unset($laravel, $application, $config, $packages, $public, $storage);
|
||||
|
||||
/**
|
||||
* Load the classes that can't be resolved through the auto-loader.
|
||||
* These are typically classes that are used by the auto-loader or
|
||||
* configuration classes, and therefore cannot be auto-loaded.
|
||||
*/
|
||||
//require SYS_PATH.'facades'.EXT;
|
||||
require SYS_PATH.'config'.EXT;
|
||||
require SYS_PATH.'loader'.EXT;
|
||||
require SYS_PATH.'arr'.EXT;
|
||||
|
|
Loading…
Reference in New Issue