commenting bootstrap files.
This commit is contained in:
parent
abd23c9610
commit
3dbc60aee3
|
@ -1,8 +1,5 @@
|
||||||
<?php namespace Laravel;
|
<?php namespace Laravel;
|
||||||
|
|
||||||
/**
|
|
||||||
* Define core framework paths and constants.
|
|
||||||
*/
|
|
||||||
define('APP_PATH', realpath($application).'/');
|
define('APP_PATH', realpath($application).'/');
|
||||||
define('BASE_PATH', realpath(str_replace('laravel', '', $laravel)).'/');
|
define('BASE_PATH', realpath(str_replace('laravel', '', $laravel)).'/');
|
||||||
define('PACKAGE_PATH', realpath($packages).'/');
|
define('PACKAGE_PATH', realpath($packages).'/');
|
||||||
|
@ -25,7 +22,7 @@
|
||||||
define('SYS_LANG_PATH', SYS_PATH.'language/');
|
define('SYS_LANG_PATH', SYS_PATH.'language/');
|
||||||
define('VIEW_PATH', APP_PATH.'views/');
|
define('VIEW_PATH', APP_PATH.'views/');
|
||||||
|
|
||||||
define('EXT', '.php');
|
define('EXT', '.php');
|
||||||
define('BLADE_EXT', '.blade.php');
|
define('BLADE_EXT', '.blade.php');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,9 +1,8 @@
|
||||||
<?php namespace Laravel;
|
<?php namespace Laravel;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create the exception formatter closure. This function will format
|
* Create the exception formatter closure. This function will format the exception
|
||||||
* the exception message and severity for display and return the
|
* message and severity for display and return the two formatted strings in an array.
|
||||||
* two formatted strings in an array.
|
|
||||||
*/
|
*/
|
||||||
$formatter = function($e)
|
$formatter = function($e)
|
||||||
{
|
{
|
||||||
|
@ -33,9 +32,8 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create the exception handler function. All of the handlers registered
|
* Create the exception handler function. All of the handlers registered with PHP
|
||||||
* with PHP will call this handler when an error occurs, giving us a common
|
* will call this handler when an error occurs so the code stays D.R.Y.
|
||||||
* spot to put error handling logic.
|
|
||||||
*/
|
*/
|
||||||
$handler = function($e) use ($formatter)
|
$handler = function($e) use ($formatter)
|
||||||
{
|
{
|
||||||
|
@ -45,7 +43,9 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Register the exception, error, and shutdown error handlers.
|
* Register the exception, error, and shutdown error handlers. These handlers will
|
||||||
|
* catch all PHP exceptions and errors and pass the exceptions into the common
|
||||||
|
* Laravel error handler.
|
||||||
*/
|
*/
|
||||||
set_exception_handler(function($e) use ($handler)
|
set_exception_handler(function($e) use ($handler)
|
||||||
{
|
{
|
||||||
|
@ -66,7 +66,8 @@
|
||||||
});
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the error reporting and display levels.
|
* Set the error reporting and display levels. Since the framework will be displaying
|
||||||
|
* the exception messages, we don't want PHP to display any error information.
|
||||||
*/
|
*/
|
||||||
error_reporting(-1);
|
error_reporting(-1);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue