Fallback autoloader

This commit is contained in:
Michael RICOIS 2014-12-19 14:29:23 +00:00
parent c47069460b
commit c41bb05a8b

View File

@ -13,6 +13,19 @@ set_include_path(implode(PATH_SEPARATOR, array(
get_include_path(),
)));
//Use classmap autoloader - useful with opcode and realpath cache
require_once 'Zend/Loader/AutoloaderFactory.php';
require_once 'Zend/Loader/ClassMapAutoloader.php';
Zend_Loader_AutoloaderFactory::factory(array(
'Zend_Loader_StandardAutoloader' => array(
'prefixes' => array(
'Zend' => __DIR__ . '/../../library/Zend',
'Application' => __DIR__ . '/../../library/Application',
),
'fallback_autoloader' => true
),
));
try {
$opts = new Zend_Console_Getopt(
//Options