Download the PHP package xabbuh/di-configuration-bundle without Composer
On this page you can find all versions of the php package xabbuh/di-configuration-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download xabbuh/di-configuration-bundle
More information about xabbuh/di-configuration-bundle
Files in xabbuh/di-configuration-bundle
Package di-configuration-bundle
Short Description Override Symfony service definition configuration with ease
License MIT
Homepage https://github.com/xabbuh/DIConfigurationBundle
Informations about the package di-configuration-bundle
Symfony Dependency Injection Configuration Bundle
This bundle makes it possible to easily customise existing service definitions defined in third-party bundles.
Note: Many bundles offer their own configuration options to customise how their services are configured. Please refer to their documentation first for available configuration options before using this bundle.
Installation
Use Composer to install the bundle:
Then, enable it in your application:
Configuration
Note: You can only change the configuration of existing services. The bundle is not meant to be used to configure new services. If you want to add your own services use the built-in Symfony configuration mechanisms.
Customize Service Definitions
Change the class name of a service:
If you do not want to configure any other options of a particular service, you
can omit the class
key:
You can replace existing arguments using the arguments
key. A reference to
another service needs to be the service id prefixed with the @
character:
You can use the index
key for an argument if you do not want to replace all
arguments, but want to skip some of them. The following example only replaces
the first and the third argument of the locale_listener
service, but leaves
the second argument as is:
All versions of di-configuration-bundle with dependencies
symfony/config Version ~2.3
symfony/dependency-injection Version ~2.3
symfony/http-kernel Version ~2.3