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