diff --git a/src/Bridge/Symfony/DependencyInjection/Configuration.php b/src/Bridge/Symfony/DependencyInjection/Configuration.php index 588980d..714b9f7 100644 --- a/src/Bridge/Symfony/DependencyInjection/Configuration.php +++ b/src/Bridge/Symfony/DependencyInjection/Configuration.php @@ -31,6 +31,9 @@ public function getConfigTreeBuilder(): TreeBuilder ->isRequired() ->cannotBeEmpty() ->end() + ->booleanNode('skip') + ->defaultFalse() + ->end() ->variableNode('defaults') ->end() ->variableNode('catalog') diff --git a/src/Permutator.php b/src/Permutator.php index 3c31848..30912e8 100644 --- a/src/Permutator.php +++ b/src/Permutator.php @@ -29,6 +29,10 @@ public function __construct(array $routes, Database $database) public function permute(): iterable { foreach ($this->routes as $route => $spec) { + if ($spec['skip']) { + continue; + } + $variables = []; if ( ! isset($spec['catalog'])) { yield $route => $spec['defaults'] ?? [];