3
.gitignore
vendored
3
.gitignore
vendored
@@ -1 +1,2 @@
|
|||||||
favicon.*
|
favicon.*
|
||||||
|
.DS_Store
|
||||||
@@ -53,8 +53,8 @@ class Autoloader {
|
|||||||
protected static function find($class)
|
protected static function find($class)
|
||||||
{
|
{
|
||||||
// After PHP namespaces were introduced, most libaries ditched underscores for
|
// After PHP namespaces were introduced, most libaries ditched underscores for
|
||||||
// for namespaces to indicate the class directory hierarchy. We will check for
|
// namespaces to indicate the class directory hierarchy. We will check for the
|
||||||
// the presence of namespace slashes to determine the directory separator.
|
// presence of namespace slashes to determine the directory separator.
|
||||||
$separator = (strpos($class, '\\') !== false) ? '\\' : '_';
|
$separator = (strpos($class, '\\') !== false) ? '\\' : '_';
|
||||||
|
|
||||||
$library = substr($class, 0, strpos($class, $separator));
|
$library = substr($class, 0, strpos($class, $separator));
|
||||||
|
|||||||
Reference in New Issue
Block a user