mirror of
https://github.com/shlinkio/shlink.git
synced 2024-12-01 05:16:30 +03:00
35 lines
908 B
PHP
35 lines
908 B
PHP
<?php
|
|
declare(strict_types=1);
|
|
|
|
namespace Shlinkio\Shlink\Common;
|
|
|
|
use Doctrine\DBAL\Connection;
|
|
use Doctrine\ORM\EntityManager;
|
|
|
|
return [
|
|
|
|
'entity_manager' => [
|
|
'orm' => [
|
|
'types' => [
|
|
Doctrine\Type\ChronosDateTimeType::CHRONOS_DATETIME => Doctrine\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,
|
|
],
|
|
],
|
|
],
|
|
|
|
];
|