|
7 | 7 | use Doctrine\ORM\EntityManager; |
8 | 8 | use Doctrine\ORM\EntityManagerInterface; |
9 | 9 | use Doctrine\ORM\Mapping\EntityListenerResolver as EntityListenerResolverInterface; |
10 | | -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; |
|
16 | 15 | use Mezzio\Application; |
17 | 16 | use Ramsey\Uuid\Doctrine\UuidType; |
18 | 17 | use Roave\PsrContainerDoctrine\EntityManagerFactory; |
19 | | -use Symfony\Component\Cache\Adapter\AdapterInterface; |
20 | 18 |
|
21 | 19 | use function getcwd; |
22 | 20 |
|
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 | 21 | class ConfigProvider |
76 | 22 | { |
77 | 23 | /** |
|
0 commit comments