Loads the configuration for an extension.
@api
string $extension The extension alias or namespace:
array $values An array of values that customizes the extension:
ContainerBuilder The current instance
BadMethodCallException When this ContainerBuilder is frozen
\LogicException if the container is frozen
public function loadFromExtension($extension, array $values = array()) {
if ($this
->isFrozen()) {
throw new BadMethodCallException('Cannot load from an extension on a frozen container.');
}
$namespace = $this
->getExtension($extension)
->getAlias();
$this->extensionConfigs[$namespace][] = $values;
return $this;
}