public function ContainerBuilder::setDefinitions in Service Container 7.2
Same name and namespace in other branches
- 7 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/ContainerBuilder.php \Symfony\Component\DependencyInjection\ContainerBuilder::setDefinitions()
Sets the service definitions.
@api
Parameters
Definition[] $definitions An array of service definitions:
File
- modules/
providers/ service_container_symfony/ lib/ Symfony/ Component/ DependencyInjection/ ContainerBuilder.php, line 795
Class
- ContainerBuilder
- ContainerBuilder is a DI container that provides an API to easily describe services.
Namespace
Symfony\Component\DependencyInjectionCode
public function setDefinitions(array $definitions) {
$this->definitions = array();
$this
->addDefinitions($definitions);
}