Only use fallback autoloader

This commit is contained in:
Michael RICOIS 2014-12-19 14:13:42 +00:00
parent f4eb1ade06
commit 99cf227b88

View File

@ -15,6 +15,22 @@ 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',
'Scores' => __DIR__ . '/../../library/Scores',
'SdMetier' => __DIR__ . '/../../library/SdMetier',
'Metier' => __DIR__ . '/../../library/Metier',
),
'fallback_autoloader' => true
),
));
try {
$opts = new Zend_Console_Getopt(
//Options