|
6 | 6 |
|
7 | 7 | use Doctrine\ORM\EntityManager; |
8 | 8 | use Doctrine\ORM\EntityManagerInterface; |
9 | | -use Doctrine\ORM\Mapping\EntityListenerResolver as EntityListenerResolverInterface; |
10 | | -use Doctrine\Persistence\Mapping\Driver\MappingDriver; |
11 | 9 | use Doctrine\Persistence\Mapping\Driver\MappingDriverChain; |
12 | 10 | use Dot\Cache\Adapter\ArrayAdapter; |
13 | 11 | use Dot\Cache\Adapter\FilesystemAdapter; |
|
16 | 14 | use Mezzio\Application; |
17 | 15 | use Ramsey\Uuid\Doctrine\UuidType; |
18 | 16 | use Roave\PsrContainerDoctrine\EntityManagerFactory; |
19 | | -use Symfony\Component\Cache\Adapter\AdapterInterface; |
20 | 17 |
|
21 | 18 | use function getcwd; |
22 | 19 |
|
23 | | -/** |
24 | | - * @phpstan-type ConfigType array{ |
25 | | - * dependencies: DependenciesType, |
26 | | - * doctrine: DoctrineConfigType, |
27 | | - * resultCacheLifetime: int, |
28 | | - * } |
29 | | - * @phpstan-type DoctrineConfigType array{ |
30 | | - * cache: array{ |
31 | | - * array: array{ |
32 | | - * class: class-string<AdapterInterface>, |
33 | | - * }, |
34 | | - * filesystem: array{ |
35 | | - * class: class-string<AdapterInterface>, |
36 | | - * directory: non-empty-string, |
37 | | - * namespace: non-empty-string, |
38 | | - * }, |
39 | | - * }, |
40 | | - * configuration: array{ |
41 | | - * orm_default: array{ |
42 | | - * entity_listener_resolver: class-string<EntityListenerResolverInterface>, |
43 | | - * result_cache: non-empty-string, |
44 | | - * metadata_cache: non-empty-string, |
45 | | - * query_cache: non-empty-string, |
46 | | - * hydration_cache: non-empty-string, |
47 | | - * typed_field_mapper: non-empty-string|null, |
48 | | - * second_level_cache: array{ |
49 | | - * enabled: bool, |
50 | | - * default_lifetime: int, |
51 | | - * default_lock_lifetime: int, |
52 | | - * file_lock_region_directory: string, |
53 | | - * regions: string[], |
54 | | - * }, |
55 | | - * }, |
56 | | - * }, |
57 | | - * driver: array{ |
58 | | - * orm_default: array{ |
59 | | - * class: class-string<MappingDriver>, |
60 | | - * }, |
61 | | - * }, |
62 | | - * migrations: array{ |
63 | | - * migrations_paths: array<non-empty-string, non-empty-string>, |
64 | | - * all_or_nothing: bool, |
65 | | - * check_database_platform: bool, |
66 | | - * }, |
67 | | - * types: array<non-empty-string, class-string>, |
68 | | - * } |
69 | | - * @phpstan-type DependenciesType array{ |
70 | | - * factories: array<class-string|non-empty-string, class-string|non-empty-string>, |
71 | | - * aliases: array<class-string|non-empty-string, class-string|non-empty-string>, |
72 | | - * } |
73 | | - */ |
74 | | - |
75 | 20 | class ConfigProvider |
76 | 21 | { |
77 | 22 | /** |
78 | 23 | @return array{ |
79 | 24 | * dependencies: array<mixed>, |
80 | | - * doctrine: array<mixed>, |
81 | 25 | * templates: array<mixed>, |
82 | 26 | * } |
83 | 27 | */ |
@@ -152,7 +96,6 @@ private function getDoctrineConfig(): array |
152 | 96 | ], |
153 | 97 | 'configuration' => [ |
154 | 98 | 'orm_default' => [ |
155 | | - 'entity_listener_resolver' => EntityListenerResolverInterface::class, |
156 | 99 | 'result_cache' => 'filesystem', |
157 | 100 | 'metadata_cache' => 'filesystem', |
158 | 101 | 'query_cache' => 'filesystem', |
|
0 commit comments