You are here

public function ContainerBuilder::prependExtensionConfig in Service Container 7

Same name and namespace in other branches
  1. 7.2 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/ContainerBuilder.php \Symfony\Component\DependencyInjection\ContainerBuilder::prependExtensionConfig()

Prepends a config array to the configs of the given extension.

Parameters

string $name The name of the extension:

array $config The config to set:

File

modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/ContainerBuilder.php, line 579

Class

ContainerBuilder
ContainerBuilder is a DI container that provides an API to easily describe services.

Namespace

Symfony\Component\DependencyInjection

Code

public function prependExtensionConfig($name, array $config) {
  if (!isset($this->extensionConfigs[$name])) {
    $this->extensionConfigs[$name] = array();
  }
  array_unshift($this->extensionConfigs[$name], $config);
}