Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
syncEnrollments
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Yeray Santana Hualde
syncEnrollments
Commits
3dbc60ae
Commit
3dbc60ae
authored
Sep 29, 2011
by
Taylor Otwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commenting bootstrap files.
parent
abd23c96
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
12 deletions
+10
-12
core.php
laravel/bootstrap/core.php
+1
-4
errors.php
laravel/bootstrap/errors.php
+9
-8
No files found.
laravel/bootstrap/core.php
View file @
3dbc60ae
<?php
namespace
Laravel
;
/**
* Define core framework paths and constants.
*/
define
(
'APP_PATH'
,
realpath
(
$application
)
.
'/'
);
define
(
'BASE_PATH'
,
realpath
(
str_replace
(
'laravel'
,
''
,
$laravel
))
.
'/'
);
define
(
'PACKAGE_PATH'
,
realpath
(
$packages
)
.
'/'
);
...
...
laravel/bootstrap/errors.php
View file @
3dbc60ae
<?php
namespace
Laravel
;
/**
* Create the exception formatter closure. This function will format
* the exception message and severity for display and return the
* two formatted strings in an array.
* Create the exception formatter closure. This function will format the exception
* message and severity for display and return the two formatted strings in an array.
*/
$formatter
=
function
(
$e
)
{
...
...
@@ -33,9 +32,8 @@ $formatter = function($e)
};
/**
* Create the exception handler function. All of the handlers registered
* with PHP will call this handler when an error occurs, giving us a common
* spot to put error handling logic.
* Create the exception handler function. All of the handlers registered with PHP
* will call this handler when an error occurs so the code stays D.R.Y.
*/
$handler
=
function
(
$e
)
use
(
$formatter
)
{
...
...
@@ -45,7 +43,9 @@ $handler = function($e) use ($formatter)
};
/**
* 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
)
{
...
...
@@ -66,7 +66,8 @@ register_shutdown_function(function() use ($handler)
});
/**
* 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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment