пытаюсь прикрутить доктрину к зенду. Вот конфиги
doctrine.global.phpreturn [
'doctrine' => [
'driver' => [
'orm_default' => [
'class' => \Doctrine\Common\Persistence\Mapping\Driver\MappingDriverChain::class,
'drivers' => [],
],
],
],
];
doctrine.local.phpreturn [
'doctrine' => [
'connection' => [
'orm_default' => [
'params' => [
'url' => 'mysql://project:project@127.0.0.1/project',
],
],
],
],
];
Подключена инверсия
return [
'dependencies' => [
'abstract_factories' => [
\Zend\ServiceManager\AbstractFactory\ReflectionBasedAbstractFactory::class
],
];
выдает ошибку
root@somehost:/application# php /application/vendor/doctrine/orm/bin/doctrine
PHP Fatal error: Uncaught Zend\ServiceManager\Exception\ServiceNotFoundException: Unable to create service "Doctrine\DBAL\Connection"; unable to resolve parameter "driver" using type hint "Doctrine\DBAL\Driver" in /application/vendor/zendframework/zend-servicemanager/src/AbstractFactory/ReflectionBasedAbstractFactory.php:226