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
82b75166
Commit
82b75166
authored
Nov 01, 2011
by
Taylor Otwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor the library detection in the autoloader.
parent
c0c81083
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
autoloader.php
laravel/autoloader.php
+3
-3
No files found.
laravel/autoloader.php
View file @
82b75166
...
...
@@ -67,14 +67,14 @@ class Autoloader {
}
}
// If the
namespace exist
s in the libraries directory, we will assume the
// If the
file exists as-i
s in the libraries directory, we will assume the
// library is PSR-0 compliant, and will add the namespace to the array of
// libraries and load the class accordingly.
if
(
is_dir
(
LIBRARY_PATH
.
$namespace
))
if
(
file_exists
(
$path
=
LIBRARY_PATH
.
str_replace
(
'_'
,
'/'
,
$file
)
))
{
static
::
$libraries
[]
=
$namespace
;
return
LIBRARY_PATH
.
str_replace
(
'_'
,
'/'
,
$file
)
;
return
$path
;
}
}
...
...
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