未找到Zend Framework 2错误侦听器选项


Zend Framework 2 Error ListenerOptions not found

我需要帮助设置Zend Framework 2。我得到这个错误:

致命错误:在index.php 中找不到类"Zend''Module''ListenerOptions"

为什么找不到类?

这是我的index.php:

<?php
chdir(dirname(__DIR__));
require_once './vendor/ZendFramework/library' . '/Zend/Loader/AutoloaderFactory.php';
Zend'Loader'AutoloaderFactory::factory();
$appConfig = include './config/application.config.php';
$listenerOptions = new Zend'Module'Listener'ListenerOptions($appConfig['module_listener_options']);
$defaultListeners = new Zend'Module'Listener'DefaultListenerAggregate($listenerOptions);
$defaultListeners->getConfigListener()->addConfigGlobPath("config/autoload/{,*.}{global,local}.config.php");

$moduleManager = new Zend'Module'Manager($appConfig['modules']);
$moduleManager->events()->attachAggregate($defaultListeners);
$moduleManager->loadModules();
// Create application, bootstrap, and run
$bootstrap = new Zend'Mvc'Bootstrap($defaultListeners->getConfigListener()->getMergedConfig());
$application = new Zend'Mvc'Application;
$bootstrap->bootstrap($application);
$application->run()->send();
?>

Zend'Module'Listener'ListenerOptions现在位于Zend'ModuleManager'Listener'ListenerOptions下,检查该类和其他与命名空间Zend'Module'Listener 相关的类