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
16a62193
Commit
16a62193
authored
Nov 05, 2011
by
Taylor Otwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix function namespacing.
parent
7b22f66a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
48 additions
and
29 deletions
+48
-29
core.php
laravel/bootstrap/core.php
+15
-23
errors.php
laravel/bootstrap/errors.php
+6
-6
functions.php
laravel/bootstrap/functions.php
+27
-0
No files found.
laravel/bootstrap/core.php
View file @
16a62193
<?php
namespace
Laravel
;
/**
* Define all of the constants used by the framework. All of the
*
core paths will be defined, as well as all of the paths which
*
derive from tho
se core paths.
* Define all of the constants used by the framework. All of the
core
*
paths will be defined, as well as all of the paths which derive
*
from the
se core paths.
*/
define
(
'EXT'
,
'.php'
);
define
(
'CRLF'
,
chr
(
13
)
.
chr
(
10
));
...
...
@@ -29,9 +29,9 @@ define('SYS_VIEW_PATH', SYS_PATH.'views/');
define
(
'VIEW_PATH'
,
APP_PATH
.
'views/'
);
/**
* Define the Laravel environment configuration path. This path is
*
used by the configuration class to load configuration options
*
specific
for the server environment.
* Define the Laravel environment configuration path. This path is
used
*
by the configuration class to load configuration options specific
* for the server environment.
*/
$environment
=
''
;
...
...
@@ -55,18 +55,18 @@ require SYS_PATH.'container'.EXT;
require
SYS_PATH
.
'autoloader'
.
EXT
;
/**
* Load a few of the core configuration files that are loaded for
*
every request to the application. It is quicker to load them
*
manually
rather than parse the keys for every request.
* Load a few of the core configuration files that are loaded for
every
*
request to the application. It is quicker to load them manually each
*
request
rather than parse the keys for every request.
*/
Config
::
load
(
'application'
);
Config
::
load
(
'container'
);
Config
::
load
(
'session'
);
/**
* Bootstrap the application inversion of control container.
*
The IoC container is responsible for resolving classes and
*
their dependencies, and helps keep the
framework flexible.
* Bootstrap the application inversion of control container.
The IoC
*
container is responsible for resolving classes, and helps keep the
* framework flexible.
*/
IoC
::
bootstrap
();
...
...
@@ -78,15 +78,7 @@ IoC::bootstrap();
spl_autoload_register
(
array
(
'Laravel\\Autoloader'
,
'load'
));
/**
* Define a few global convenience functions to make our lives
*
as
Laravel PHP developers a little more easy and enjoyable.
* Define a few global convenience functions to make our lives
as
* Laravel PHP developers a little more easy and enjoyable.
*/
function
e
(
$value
)
{
return
HTML
::
entities
(
$value
);
}
function
__
(
$key
,
$replacements
=
array
(),
$language
=
null
)
{
return
Lang
::
line
(
$key
,
$replacements
,
$language
);
}
\ No newline at end of file
require
'functions'
.
EXT
;
\ No newline at end of file
laravel/bootstrap/errors.php
View file @
16a62193
<?php
namespace
Laravel
;
/**
* Define a closure that will return
a formatted error message
* when given an exception. This function will be used by
the
*
error handler
to create a more readable message.
* Define a closure that will return
the formatted error message when
* when given an exception. This function will be used by
all of error
*
handlers
to create a more readable message.
*/
$message
=
function
(
$e
)
{
...
...
@@ -17,9 +17,9 @@ $message = function($e)
};
/**
* Define a closure that will return a more readable version of
*
the severity of an exception. This function will be used by
*
the error
handler when parsing exceptions.
* Define a closure that will return a more readable version of
the
*
severity of an exception. This function will be used by the error
* handler when parsing exceptions.
*/
$severity
=
function
(
$e
)
{
...
...
laravel/bootstrap/functions.php
0 → 100644
View file @
16a62193
<?php
/**
* Convert HTML characters to entities.
*
* The encoding specified in the application configuration file will be used.
*
* @param string $value
* @return string
*/
function
e
(
$value
)
{
return
HTML
::
entities
(
$value
);
}
/**
* Retrieve a language line.
*
* @param string $key
* @param array $replacements
* @param string $language
* @return string
*/
function
__
(
$key
,
$replacements
=
array
(),
$language
=
null
)
{
return
Lang
::
line
(
$key
,
$replacements
,
$language
);
}
\ No newline at end of file
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