public static function initialize(ClassLoader $autoloader = null) { if (null === self::$autoloader) { if (null === $autoloader) { $autoloader = new ClassLoader(); $autoloader->register(); } return self::$autoloader = $autoloader; } throw new \RuntimeException('Already initialized'); }
} AnnotationRegistry::registerLoader(array($loader, 'loadClass')); // Swiftmailer needs a special autoloader to allow // the lazy loading of the init file (which is expensive) //require_once __DIR__.'/../vendor/swiftmailer/swiftmailer/lib/classes/Swift.php'; //Swift::registerAutoload(__DIR__.'/../vendor/swiftmailer/swiftmailer/lib/swift_init.php'); require_once __DIR__ . '/../vendor/hard/Smarty/Smarty.class.php'; require_once __DIR__ . '/../src/legacy/i18n/ZGettextFunctions.php'; $loader->add('Zikula_', __DIR__ . '/../src/legacy'); $loader->add('Zikula', __DIR__ . '/../src'); $loader->add('Zend_', __DIR__ . '/../vendor/hard'); $loader->add('AdminModule', __DIR__ . '/../web/system'); $loader->add('BlocksModule', __DIR__ . '/../web/system'); $loader->add('CategoriesModule', __DIR__ . '/../web/system'); $loader->add('ErrorsModule', __DIR__ . '/../web/system'); $loader->add('ExtensionsModule', __DIR__ . '/../web/system'); $loader->add('GroupsModule', __DIR__ . '/../web/system'); $loader->add('MailerModule', __DIR__ . '/../web/system'); $loader->add('PageLockModule', __DIR__ . '/../web/system'); $loader->add('PermissionsModule', __DIR__ . '/../web/system'); $loader->add('SearchModule', __DIR__ . '/../web/system'); $loader->add('SecurityCenterModule', __DIR__ . '/../web/system'); $loader->add('SettingsModule', __DIR__ . '/../web/system'); $loader->add('ThemeModule', __DIR__ . '/../web/system'); $loader->add('UsersModule', __DIR__ . '/../web/system'); $loader->add('Andreas08Theme', __DIR__ . '/../web/themes'); require_once __DIR__ . '/../src/Zikula/Bundle/CoreBundle/Resources/stubs/ZikulaAutoload.php'; ZikulaAutoload::initialize($loader); if (file_exists(__DIR__ . 'bootstrap.php.cache')) { include __DIR__ . 'bootstrap.php.cache'; }