mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-02 15:51:48 +03:00
Pr fixes
This commit is contained in:
parent
77f4091805
commit
8692c1245e
@ -112,7 +112,7 @@ final class NelmioApiDocExtension extends Extension implements PrependExtensionI
|
||||
$documentation,
|
||||
true,
|
||||
])
|
||||
->addTag(sprintf('nelmio_api_doc.describer.%s', $area), ['priority' => 1000]);
|
||||
->addTag(sprintf('nelmio_api_doc.describer.%s', $area), ['priority' => 990]);
|
||||
|
||||
$container->getDefinition(sprintf('nelmio_api_doc.describers.config.%s', $area))->replaceArgument(0, $documentation);
|
||||
}
|
||||
@ -163,6 +163,9 @@ final class NelmioApiDocExtension extends Extension implements PrependExtensionI
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
// Import the base configuration
|
||||
$container->getDefinition('nelmio_api_doc.describers.config')->replaceArgument(0, $config['documentation']);
|
||||
}
|
||||
|
||||
private function findNameAliases(array $names, string $area): array
|
||||
|
@ -26,7 +26,7 @@
|
||||
<service id="nelmio_api_doc.describers.config" class="Nelmio\ApiDocBundle\Describer\ExternalDocDescriber" public="false">
|
||||
<argument type="collection" />
|
||||
|
||||
<tag name="nelmio_api_doc.describer" priority="-1000" />
|
||||
<tag name="nelmio_api_doc.describer" priority="1000" />
|
||||
</service>
|
||||
|
||||
<service id="nelmio_api_doc.describers.default" class="Nelmio\ApiDocBundle\Describer\DefaultDescriber" public="false">
|
||||
|
@ -92,9 +92,6 @@ class NelmioApiDocExtensionTest extends TestCase
|
||||
$extension = new NelmioApiDocExtension();
|
||||
$extension->load([
|
||||
[
|
||||
'areas' => [
|
||||
'default' => [],
|
||||
],
|
||||
'documentation' => [
|
||||
'info' => [
|
||||
'title' => 'API documentation',
|
||||
|
Loading…
x
Reference in New Issue
Block a user