mirror of
https://github.com/shlinkio/shlink.git
synced 2024-11-28 09:03:07 +03:00
35 lines
890 B
PHP
35 lines
890 B
PHP
<?php
|
|
declare(strict_types=1);
|
|
|
|
namespace Shlinkio\Shlink\Common;
|
|
|
|
use Doctrine\DBAL\Connection;
|
|
use Doctrine\ORM\EntityManager;
|
|
|
|
return [
|
|
|
|
'entity_manager' => [
|
|
'orm' => [
|
|
'types' => [
|
|
Type\ChronosDateTimeType::CHRONOS_DATETIME => Type\ChronosDateTimeType::class,
|
|
],
|
|
],
|
|
],
|
|
|
|
'dependencies' => [
|
|
'factories' => [
|
|
EntityManager::class => Doctrine\EntityManagerFactory::class,
|
|
Connection::class => Doctrine\ConnectionFactory::class,
|
|
Doctrine\NoDbNameConnectionFactory::SERVICE_NAME => Doctrine\NoDbNameConnectionFactory::class,
|
|
],
|
|
'aliases' => [
|
|
'em' => EntityManager::class,
|
|
],
|
|
'delegators' => [
|
|
EntityManager::class => [
|
|
Doctrine\ReopeningEntityManagerDelegator::class,
|
|
],
|
|
],
|
|
],
|
|
|
|
];
|