我的 module.config.php 文件有以下摘录:
返回数组(
'service_manager' => 数组(
'别名' => 数组(
'Util\Dao\Factory' => 'modelFactory',
),
'工厂' => 数组(
'modelFactory' => 函数($sm){
$dbAdapter = $sm->get('Doctrine\ORM\EntityManager');
返回新的 \Util\Dao\Factory($dbAdapter);
},
)
),
'教义' => 数组(
'驱动程序' => 数组(
'application_entities' => 数组(
'class' => 'Doctrine\ORM\Mapping\Driver\AnnotationDriver',
'缓存' => '数组',
'路径' => 数组(
__DIR__ 。'/../src/应用程序/模型'
),
),
'orm_default' => 数组(
'驱动程序' => 数组(
'应用程序\模型' => 'application_entities'
)
),
),
),
我如何将块“教义”放在模块类中?