mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-10 03:29:25 +03:00
Remove documentation from route builder
This commit is contained in:
parent
8692c1245e
commit
8fad5a4025
@ -72,6 +72,8 @@ final class NelmioApiDocExtension extends Extension implements PrependExtensionI
|
|||||||
new TaggedIteratorArgument('nelmio_api_doc.model_describer'),
|
new TaggedIteratorArgument('nelmio_api_doc.model_describer'),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
unset($areaConfig['documentation']);
|
||||||
|
|
||||||
if (0 === count($areaConfig['path_patterns']) && 0 === count($areaConfig['host_patterns'])) {
|
if (0 === count($areaConfig['path_patterns']) && 0 === count($areaConfig['host_patterns'])) {
|
||||||
$container->setDefinition(sprintf('nelmio_api_doc.routes.%s', $area), $routesDefinition)
|
$container->setDefinition(sprintf('nelmio_api_doc.routes.%s', $area), $routesDefinition)
|
||||||
->setPublic(false);
|
->setPublic(false);
|
||||||
|
@ -26,7 +26,6 @@ final class FilteredRouteCollectionBuilder
|
|||||||
->setDefaults([
|
->setDefaults([
|
||||||
'path_patterns' => [],
|
'path_patterns' => [],
|
||||||
'host_patterns' => [],
|
'host_patterns' => [],
|
||||||
'documentation' => [],
|
|
||||||
])
|
])
|
||||||
->setAllowedTypes('path_patterns', 'string[]')
|
->setAllowedTypes('path_patterns', 'string[]')
|
||||||
->setAllowedTypes('host_patterns', 'string[]')
|
->setAllowedTypes('host_patterns', 'string[]')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user