Php 在Zend Framework 3中创建相册模块时出错

Php 在Zend Framework 3中创建相册模块时出错,php,zend-framework3,Php,Zend Framework3,大家早上好,我需要帮助在Zend Frameword 3中创建相册模块,遵循教程3。我有以下错误: <?php [ModelAlbumTable::class => function ($container) { $tableGateway = $container->get(ModelAlbumTableGateway::class); return new ModelAlbumTable($tableGateway); } , ModelAlbumTableGatew

大家早上好,我需要帮助在Zend Frameword 3中创建相册模块,遵循教程3。我有以下错误:

<?php
[ModelAlbumTable::class =>

function ($container)
{
$tableGateway = $container->get(ModelAlbumTableGateway::class);

return new ModelAlbumTable($tableGateway);
}

, ModelAlbumTableGateway::class =>

function ($container)
{
$dbAdapter = $container->get(AdapterInterface::class);

$resultSetPrototype = new ResultSet();
$resultSetPrototype->setArrayObjectPrototype(new ModelAlbum());
return new TableGateway('album', $dbAdapter, null, $resultSetPrototype);
}

, ], ];
} // Add this method: 
public function getControllerConfig() 
{ return [ 'factories' => [ Controller\AlbumController::class => 
 function($container) { 
return new Controller\AlbumController( $container- 
get(Model\AlbumTable::class) ); }, ], ]; } }
 ?>

请将标题翻译成英语,或将问题正文翻译成西班牙语并发布在上。您的模块配置错误,您可以在以下位置看到mudule.config.php:中标记为版主关闭,与西班牙语中的相同:(由OP在评论中提供)。