Skip to content
This repository was archived by the owner on Jan 8, 2024. It is now read-only.

Commit c664bf5

Browse files
committed
Removed useless configuration validation since its now handled by Phpfastcache configuration validator
1 parent d6e6366 commit c664bf5

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/DependencyInjection/PhpfastcacheExtension.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,6 @@ public function load(array $configs, ContainerBuilder $container)
5454
$configuration = new Configuration();
5555
$config = $this->processConfiguration($configuration, $configs);
5656

57-
foreach ($config['drivers'] as $name => $driver) {
58-
$class = "Phpfastcache\\Drivers\\" . $driver['type'] . '\Driver';
59-
foreach ($driver['parameters'] as $parameter_name => $parameter) {
60-
if (!$class::isValidOption($parameter_name, $parameter)) {
61-
throw new PhpfastcacheDriverException("Option $parameter_name in driver {$driver['type']} doesn't exists");
62-
}
63-
}
64-
}
65-
6657
$container->setParameter('phpfastcache', $config);
6758
}
6859
}

0 commit comments

Comments
 (0)