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
466f0549
Commit
466f0549
authored
Nov 07, 2011
by
Taylor Otwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clean up auto-loader comment.
parent
ef89dd3b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
autoloader.php
laravel/autoloader.php
+2
-3
No files found.
laravel/autoloader.php
View file @
466f0549
...
@@ -59,6 +59,7 @@ class Autoloader {
...
@@ -59,6 +59,7 @@ class Autoloader {
// If the namespace has been registered as a PSR-0 compliant library, we will
// If the namespace has been registered as a PSR-0 compliant library, we will
// load the library according to the PSR-0 naming standards, which state that
// load the library according to the PSR-0 naming standards, which state that
// namespaces and underscores indicate the directory hierarchy of the class.
// namespaces and underscores indicate the directory hierarchy of the class.
//
// The PSR-0 standard is exactly like the typical Laravel standard, the only
// The PSR-0 standard is exactly like the typical Laravel standard, the only
// difference being that Laravel files are all lowercase, while PSR-0 states
// difference being that Laravel files are all lowercase, while PSR-0 states
// that the file name should match the class name.
// that the file name should match the class name.
...
@@ -77,9 +78,7 @@ class Autoloader {
...
@@ -77,9 +78,7 @@ class Autoloader {
// If we could not find the class file in any of the auto-loaded locations
// If we could not find the class file in any of the auto-loaded locations
// according to the Laravel naming standard, we will search the libraries
// according to the Laravel naming standard, we will search the libraries
// directory for the class according to the PSR-0 naming standard. If the
// directory for the class according to the PSR-0 naming standard.
// file exists, we will add the class namespace to the array of registered
// libraries that are loaded following the PSR-0 standard.
if
(
file_exists
(
$path
=
LIBRARY_PATH
.
str_replace
(
'_'
,
'/'
,
$file
)
.
EXT
))
if
(
file_exists
(
$path
=
LIBRARY_PATH
.
str_replace
(
'_'
,
'/'
,
$file
)
.
EXT
))
{
{
static
::
$libraries
[]
=
$namespace
;
static
::
$libraries
[]
=
$namespace
;
...
...
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