Merge pull request #1808 from derrabus/bugfix/service-locator

Added a class to the nelmio_api_doc.generator_locator service definition
This commit is contained in:
Guilhem Niot 2021-04-19 10:13:09 +02:00 committed by GitHub
commit 67d626682d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,6 +27,7 @@ use Symfony\Component\DependencyInjection\Definition;
use Symfony\Component\DependencyInjection\Extension\PrependExtensionInterface;
use Symfony\Component\DependencyInjection\Loader\XmlFileLoader;
use Symfony\Component\DependencyInjection\Reference;
use Symfony\Component\DependencyInjection\ServiceLocator;
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
use Symfony\Component\Routing\RouteCollection;
@ -127,7 +128,7 @@ final class NelmioApiDocExtension extends Extension implements PrependExtensionI
}
}
$container->register('nelmio_api_doc.generator_locator')
$container->register('nelmio_api_doc.generator_locator', ServiceLocator::class)
->setPublic(false)
->addTag('container.service_locator')
->addArgument(array_combine(