Skip to content

Commit 5a3e756

Browse files
authored
Merge pull request #8 from Howriq/chapter-1
removed type from app/ConfigProvider
2 parents 722260f + c994b3f commit 5a3e756

File tree

1 file changed

+0
-57
lines changed

1 file changed

+0
-57
lines changed

src/App/src/ConfigProvider.php

Lines changed: 0 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66

77
use Doctrine\ORM\EntityManager;
88
use Doctrine\ORM\EntityManagerInterface;
9-
use Doctrine\ORM\Mapping\EntityListenerResolver as EntityListenerResolverInterface;
10-
use Doctrine\Persistence\Mapping\Driver\MappingDriver;
119
use Doctrine\Persistence\Mapping\Driver\MappingDriverChain;
1210
use Dot\Cache\Adapter\ArrayAdapter;
1311
use Dot\Cache\Adapter\FilesystemAdapter;
@@ -16,68 +14,14 @@
1614
use Mezzio\Application;
1715
use Ramsey\Uuid\Doctrine\UuidType;
1816
use Roave\PsrContainerDoctrine\EntityManagerFactory;
19-
use Symfony\Component\Cache\Adapter\AdapterInterface;
2017

2118
use function getcwd;
2219

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-
7520
class ConfigProvider
7621
{
7722
/**
7823
@return array{
7924
* dependencies: array<mixed>,
80-
* doctrine: array<mixed>,
8125
* templates: array<mixed>,
8226
* }
8327
*/
@@ -152,7 +96,6 @@ private function getDoctrineConfig(): array
15296
],
15397
'configuration' => [
15498
'orm_default' => [
155-
'entity_listener_resolver' => EntityListenerResolverInterface::class,
15699
'result_cache' => 'filesystem',
157100
'metadata_cache' => 'filesystem',
158101
'query_cache' => 'filesystem',

0 commit comments

Comments
 (0)