diff --git a/src/App/src/ConfigProvider.php b/src/App/src/ConfigProvider.php index 4134b70..c1dec1a 100644 --- a/src/App/src/ConfigProvider.php +++ b/src/App/src/ConfigProvider.php @@ -6,8 +6,6 @@ use Doctrine\ORM\EntityManager; use Doctrine\ORM\EntityManagerInterface; -use Doctrine\ORM\Mapping\EntityListenerResolver as EntityListenerResolverInterface; -use Doctrine\Persistence\Mapping\Driver\MappingDriver; use Doctrine\Persistence\Mapping\Driver\MappingDriverChain; use Dot\Cache\Adapter\ArrayAdapter; use Dot\Cache\Adapter\FilesystemAdapter; @@ -16,68 +14,14 @@ use Mezzio\Application; use Ramsey\Uuid\Doctrine\UuidType; use Roave\PsrContainerDoctrine\EntityManagerFactory; -use Symfony\Component\Cache\Adapter\AdapterInterface; use function getcwd; -/** - * @phpstan-type ConfigType array{ - * dependencies: DependenciesType, - * doctrine: DoctrineConfigType, - * resultCacheLifetime: int, - * } - * @phpstan-type DoctrineConfigType array{ - * cache: array{ - * array: array{ - * class: class-string, - * }, - * filesystem: array{ - * class: class-string, - * directory: non-empty-string, - * namespace: non-empty-string, - * }, - * }, - * configuration: array{ - * orm_default: array{ - * entity_listener_resolver: class-string, - * result_cache: non-empty-string, - * metadata_cache: non-empty-string, - * query_cache: non-empty-string, - * hydration_cache: non-empty-string, - * typed_field_mapper: non-empty-string|null, - * second_level_cache: array{ - * enabled: bool, - * default_lifetime: int, - * default_lock_lifetime: int, - * file_lock_region_directory: string, - * regions: string[], - * }, - * }, - * }, - * driver: array{ - * orm_default: array{ - * class: class-string, - * }, - * }, - * migrations: array{ - * migrations_paths: array, - * all_or_nothing: bool, - * check_database_platform: bool, - * }, - * types: array, - * } - * @phpstan-type DependenciesType array{ - * factories: array, - * aliases: array, - * } - */ - class ConfigProvider { /** @return array{ * dependencies: array, - * doctrine: array, * templates: array, * } */ @@ -152,7 +96,6 @@ private function getDoctrineConfig(): array ], 'configuration' => [ 'orm_default' => [ - 'entity_listener_resolver' => EntityListenerResolverInterface::class, 'result_cache' => 'filesystem', 'metadata_cache' => 'filesystem', 'query_cache' => 'filesystem',