//Detect when no user configuration is provided
if ($configs === [[]]) {
//Prepend default config
- $container->prependExtensionConfig($this->getAlias(), $config);
+ $container->prependExtensionConfig(self::getAlias(), $config);
}
//Save configuration in parameters
- $container->setParameter($this->getAlias(), $config);
+ $container->setParameter(self::getAlias(), $config);
}
/**
$this->package = $package;
//Retrieve bundle config
- if ($parameters = $container->getParameter($this->getAlias())) {
+ if ($parameters = $container->getParameter(self::getAlias())) {
//Set config, output and filters arrays
foreach(['config', 'output', 'filters'] as $k) {
$this->$k = $parameters[$k];