clean up auto-loader comment.
This commit is contained in:
parent
ef89dd3b31
commit
466f05499f
|
@ -59,6 +59,7 @@ protected static function find($class)
|
||||||
// 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 @@ protected static function find($class)
|
||||||
|
|
||||||
// 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;
|
||||||
|
|
Loading…
Reference in New Issue