Download the PHP package bnf/symfony-service-provider-compiler-pass without Composer
On this page you can find all versions of the php package bnf/symfony-service-provider-compiler-pass. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download bnf/symfony-service-provider-compiler-pass
More information about bnf/symfony-service-provider-compiler-pass
Files in bnf/symfony-service-provider-compiler-pass
Package symfony-service-provider-compiler-pass
Short Description Symfony compiler pass that allows to use service providers as defined in container-interop/service-provider
License MIT
Informations about the package symfony-service-provider-compiler-pass
container-interop/service-provider compiler pass
Import service-provider
as defined in container-interop
into a Symfony dependency injection container.
This is a fork of thecodingmachine/service-provider-bridge-bundle to support Symfony 4. Credits go to David Négrier.
Usage
You have to declare service providers manually in the constructor of the registry.
Alternatively, you can also pass the service provider class name. This is interesting because the service-provider registry will not instantiate the service provider unless it is needed for a service. You can therefore improve performances of your application.
Finally, if you need to pass parameters to the constructors of the service providers, you can do this by passing an array:
All versions of symfony-service-provider-compiler-pass with dependencies
symfony/dependency-injection Version ^4.1
container-interop/service-provider Version ~0.4.0
psr/container Version ^1.0