Writes: ( ! ) Zend\ServiceManager\Exception\ServiceNotCreatedException: Service with name "doctrine.driver.orm_default" could not be created. Reason: Drivers must specify a class in /var/www/projects/library2/vendor/zendframework/zend-servicemanager/src/ServiceManager.php on line 765 ( ! ) Zend\ServiceManager\Exception\ServiceNotCreatedException: Service with name "doctrine.driver.orm_default" could not be created. Reason: Drivers must specify a class in /var/www/projects/library2/vendor/zendframework/zend-servicemanager/src/ServiceManager.php on line 765 In the file modules.config.php added: 'DoctrineModule', 'DoctrineORMModule',
Contents of doctrine.global.php:
<?php use Doctrine\DBAL\Driver\PDOPgSql\Driver; return [ 'doctrine' => [ 'connection' => [ 'orm_default' => [ 'driverClass' => Driver::class, 'params' => [ 'host' => 'localhost', 'port' => '5432', 'user' => 'production', 'password' => 'production', 'dbname' => 'library', ] ], ], ], ];