mirror of
https://github.com/laravel/laravel.git
synced 2025-02-20 11:53:14 +08:00
commit
b0ffc0183a
3
.gitignore
vendored
3
.gitignore
vendored
@ -1 +1,2 @@
|
||||
favicon.*
|
||||
favicon.*
|
||||
.DS_Store
|
@ -53,8 +53,8 @@ class Autoloader {
|
||||
protected static function find($class)
|
||||
{
|
||||
// After PHP namespaces were introduced, most libaries ditched underscores for
|
||||
// for namespaces to indicate the class directory hierarchy. We will check for
|
||||
// the presence of namespace slashes to determine the directory separator.
|
||||
// namespaces to indicate the class directory hierarchy. We will check for the
|
||||
// presence of namespace slashes to determine the directory separator.
|
||||
$separator = (strpos($class, '\\') !== false) ? '\\' : '_';
|
||||
|
||||
$library = substr($class, 0, strpos($class, $separator));
|
||||
|
Loading…
x
Reference in New Issue
Block a user