Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
Remove require_once() in AutoloaderFactory
Browse files Browse the repository at this point in the history
This dependency was removed by @weierophinney in PR zendframework/zendframework#1852, but the
require_once was not removed. Originally the dependency was introduced
by @prolic in PR zendframework/zendframework#1807.
  • Loading branch information
EvanDotPro committed Jul 11, 2012
1 parent 3b2ad1c commit 1ca385c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/AutoloaderFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ public static function factory($options = null)
);
}

require_once __DIR__ . '/../Stdlib/SubClass.php';
if (!self::isSubclassOf($class, 'Zend\Loader\SplAutoloader')) {
require_once 'Exception/InvalidArgumentException.php';
throw new Exception\InvalidArgumentException(
Expand Down Expand Up @@ -184,7 +183,7 @@ protected static function getStandardAutoloader()
if (null !== static::$standardAutoloader) {
return static::$standardAutoloader;
}

// Extract the filename from the classname
$stdAutoloader = substr(strrchr(static::STANDARD_AUTOLOADER, '\\'), 1);

Expand Down

0 comments on commit 1ca385c

Please sign in to comment.