ZF2:模块无法初始化

aso*_*aso 5 php zend-framework2

我正在尝试开始使用ZF2,当我从教程中编写代码时(在ZF网站上)我遇到了问题.我的代码:

Module.php:
<?php
namespace About;

class About
{
    public function getAutoloaderConfig()
    {
        return array(
            'Zend\Loader\ClassMapAutoloader' => array(
                __DIR__ . '/autoload_classmap.php',
            ),
            'Zend\Loader\StandardAutoloader' => array(
                'namespaces' => array(
                    __NAMESPACE__ => __DIR__ . '/src/' . __NAMESPACE__,
                ),
            ),
        );
    }

    public function getConfig() 
    {
        return include __DIR__ . '/config/module.config.php';
    }
}
?>

config/module.config.php:

<?php
return array(
    'controllers' => array(
        'invokables' => array(
            'About\Controller\About' => 'About\Controller\AboutController',
        ),
    ),

    'router' => array(
        'routes' => array(
            'album' => array(
                'type'      =>  'segment',
                'options'   => array(
                    'route'     => '/about[/:action][/:id]',
                    'constraints' => array(
                        'action'    =>  '[a-zA-Z][a-zA-Z0-9_-]*',
                        'id'        =>  '[0-9]+',
                    ),
                    'defaults'  => array(
                        'controller'    => 'About\Controller\About',
                        'action'        =>  'index',
                    ),
                ),
            ),
        ),
    ),

    'view_manager' => array(
        'template_path_stack' => array(
            'about' => __DIR__ . '/../view',
        )
    ),
);
Run Code Online (Sandbox Code Playgroud)

问题是:

Fatal error: Uncaught exception 'Zend\ModuleManager\Exception\RuntimeException' with message 'Module (About) could not be initialized.' in /var/www/zend2/vendor/zendframework/zendframework/library/Zend/ModuleManager/ModuleManager.php on line 175
Run Code Online (Sandbox Code Playgroud)

为什么它在开始时显示?(在我的项目中:/ var/www/zend2 /).如果我从application.config.php它删除模块声明工作正常.我的问题是什么?:/

aso*_*aso 9

哎呀,解决了!
Module.php课堂上必须命名Module,而不是自己的名字......