3 * Zend Framework (http://framework.zend.com/)
5 * @link http://github.com/zendframework/zf2 for the canonical source repository
6 * @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
7 * @license http://framework.zend.com/license/new-bsd New BSD License
10 namespace Zend\Loader
;
14 if (interface_exists('Zend\Loader\SplAutoloader')) return;
17 * Defines an interface for classes that may register with the spl_autoload
20 interface SplAutoloader
25 * Allow configuration of the autoloader via the constructor.
27 * @param null|array|Traversable $options
29 public function __construct($options = null);
32 * Configure the autoloader
34 * In most cases, $options should be either an associative array or
37 * @param array|Traversable $options
38 * @return SplAutoloader
40 public function setOptions($options);
47 * False [if unable to load $class]
48 * get_class($class) [if $class is successfully loaded]
50 public function autoload($class);
53 * Register the autoloader with spl_autoload registry
55 * Typically, the body of this will simply be:
57 * spl_autoload_register(array($this, 'autoload'));
62 public function register();