2019-08-02 20:28:10 +03:00
|
|
|
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
namespace Shlinkio\Shlink\Common;
|
|
|
|
|
2019-08-05 11:08:59 +03:00
|
|
|
use Doctrine\DBAL\Connection;
|
2019-08-02 20:28:10 +03:00
|
|
|
use Doctrine\ORM\EntityManager;
|
|
|
|
|
|
|
|
return [
|
|
|
|
|
|
|
|
'entity_manager' => [
|
|
|
|
'orm' => [
|
|
|
|
'types' => [
|
|
|
|
Type\ChronosDateTimeType::CHRONOS_DATETIME => Type\ChronosDateTimeType::class,
|
|
|
|
],
|
|
|
|
],
|
|
|
|
],
|
|
|
|
|
|
|
|
'dependencies' => [
|
|
|
|
'factories' => [
|
|
|
|
EntityManager::class => Doctrine\EntityManagerFactory::class,
|
2019-08-05 11:08:59 +03:00
|
|
|
Connection::class => Doctrine\ConnectionFactory::class,
|
2019-08-05 19:48:33 +03:00
|
|
|
Doctrine\NoDbNameConnectionFactory::SERVICE_NAME => Doctrine\NoDbNameConnectionFactory::class,
|
2019-08-02 20:28:10 +03:00
|
|
|
],
|
|
|
|
'aliases' => [
|
|
|
|
'em' => EntityManager::class,
|
|
|
|
],
|
|
|
|
'delegators' => [
|
|
|
|
EntityManager::class => [
|
|
|
|
Doctrine\ReopeningEntityManagerDelegator::class,
|
|
|
|
],
|
|
|
|
],
|
|
|
|
],
|
|
|
|
|
|
|
|
];
|