add back accidentally removed code

This commit is contained in:
Christian Flothmann 2019-03-04 13:19:55 +01:00
parent 07c4a61681
commit 22ef4589a9
1 changed files with 6 additions and 0 deletions

View File

@ -205,6 +205,12 @@ class JsonDescriptor extends Descriptor
'requirements' => $route->getRequirements() ?: 'NO CUSTOM',
'options' => $route->getOptions(),
];
if ('' !== $route->getCondition()) {
$data['condition'] = $route->getCondition();
}
return $data;
}
private function getContainerDefinitionData(Definition $definition, bool $omitTags = false, bool $showArguments = false): array