22 lines
958 B
PHP
22 lines
958 B
PHP
<?php
|
|
|
|
use Template\Data\Business\Entity\User;
|
|
use Template\Data\Business\Factory\EntityManagerFactory as TemplateEntityManagerFactory;
|
|
use Template\Data\Business\Manager\EntityManager;
|
|
use Template\Data\Business\Repository\UserRepository;
|
|
use Template\Infrastructure\Database\AutowireRepositoryFactory;
|
|
use Roave\PsrContainerDoctrine\ConfigurationFactory;
|
|
use Roave\PsrContainerDoctrine\ConnectionFactory;
|
|
use Roave\PsrContainerDoctrine\EntityManagerFactory;
|
|
|
|
return [
|
|
'factories' => [
|
|
'doctrine.entity_manager.orm_template' => [EntityManagerFactory::class, 'orm_template'],
|
|
'doctrine.configuration.orm_template' => [ConfigurationFactory::class, 'orm_template'],
|
|
'doctrine.connection.orm_template' => [ConnectionFactory::class, 'orm_template'],
|
|
EntityManager::class => TemplateEntityManagerFactory::class,
|
|
|
|
UserRepository::class => [AutowireRepositoryFactory::class, EntityManager::class, User::class],
|
|
],
|
|
];
|