mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-09 02:59:27 +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'),
|
||||
]);
|
||||
|
||||
unset($areaConfig['documentation']);
|
||||
|
||||
if (0 === count($areaConfig['path_patterns']) && 0 === count($areaConfig['host_patterns'])) {
|
||||
$container->setDefinition(sprintf('nelmio_api_doc.routes.%s', $area), $routesDefinition)
|
||||
->setPublic(false);
|
||||
|
@ -26,7 +26,6 @@ final class FilteredRouteCollectionBuilder
|
||||
->setDefaults([
|
||||
'path_patterns' => [],
|
||||
'host_patterns' => [],
|
||||
'documentation' => [],
|
||||
])
|
||||
->setAllowedTypes('path_patterns', 'string[]')
|
||||
->setAllowedTypes('host_patterns', 'string[]')
|
||||
|
Loading…
x
Reference in New Issue
Block a user