|
6 | 6 |
|
7 | 7 | use Doctrine\ORM\EntityManager; |
8 | 8 | use Doctrine\ORM\EntityManagerInterface; |
9 | | -use Doctrine\ORM\Mapping\EntityListenerResolver as EntityListenerResolverInterface; |
10 | 9 | use Doctrine\Persistence\Mapping\Driver\MappingDriver; |
11 | 10 | use Doctrine\Persistence\Mapping\Driver\MappingDriverChain; |
12 | 11 | use Dot\Cache\Adapter\ArrayAdapter; |
13 | 12 | use Dot\Cache\Adapter\FilesystemAdapter; |
14 | | -use Light\App\Factory\EntityListenerResolverFactory; |
15 | 13 | use Light\App\Factory\GetIndexViewHandlerFactory; |
16 | 14 | use Light\App\Handler\GetIndexViewHandler; |
17 | | -use Light\App\Resolver\EntityListenerResolver; |
18 | 15 | use Light\App\Types\UuidType; |
19 | 16 | use Mezzio\Application; |
20 | 17 | use Roave\PsrContainerDoctrine\EntityManagerFactory; |
|
40 | 37 | * }, |
41 | 38 | * configuration: array{ |
42 | 39 | * orm_default: array{ |
43 | | - * entity_listener_resolver: class-string<EntityListenerResolverInterface>, |
44 | 40 | * result_cache: non-empty-string, |
45 | 41 | * metadata_cache: non-empty-string, |
46 | 42 | * query_cache: non-empty-string, |
@@ -100,7 +96,6 @@ public function getDependencies(): array |
100 | 96 | 'factories' => [ |
101 | 97 | 'doctrine.entity_manager.orm_default' => EntityManagerFactory::class, |
102 | 98 | GetIndexViewHandler::class => GetIndexViewHandlerFactory::class, |
103 | | - EntityListenerResolver::class => EntityListenerResolverFactory::class, |
104 | 99 | ], |
105 | 100 | 'aliases' => [ |
106 | 101 | EntityManager::class => 'doctrine.entity_manager.orm_default', |
@@ -149,13 +144,12 @@ private function getDoctrineConfig(): array |
149 | 144 | ], |
150 | 145 | 'configuration' => [ |
151 | 146 | 'orm_default' => [ |
152 | | - 'entity_listener_resolver' => EntityListenerResolver::class, |
153 | | - 'result_cache' => 'filesystem', |
154 | | - 'metadata_cache' => 'filesystem', |
155 | | - 'query_cache' => 'filesystem', |
156 | | - 'hydration_cache' => 'array', |
157 | | - 'typed_field_mapper' => null, |
158 | | - 'second_level_cache' => [ |
| 147 | + 'result_cache' => 'filesystem', |
| 148 | + 'metadata_cache' => 'filesystem', |
| 149 | + 'query_cache' => 'filesystem', |
| 150 | + 'hydration_cache' => 'array', |
| 151 | + 'typed_field_mapper' => null, |
| 152 | + 'second_level_cache' => [ |
159 | 153 | 'enabled' => true, |
160 | 154 | 'default_lifetime' => 3600, |
161 | 155 | 'default_lock_lifetime' => 60, |
|
0 commit comments