From: Raphaƫl Gertz Date: Wed, 11 Aug 2021 18:46:13 +0000 (+0200) Subject: Call self::getAlias X-Git-Tag: 0.2.0~22 X-Git-Url: https://git.rapsys.eu/packbundle/commitdiff_plain/44ea2f60a6d17b6c9475a6e87a1f520200c7d036 Call self::getAlias --- diff --git a/DependencyInjection/RapsysPackExtension.php b/DependencyInjection/RapsysPackExtension.php index 94b9fad..c73e90c 100644 --- a/DependencyInjection/RapsysPackExtension.php +++ b/DependencyInjection/RapsysPackExtension.php @@ -37,11 +37,11 @@ class RapsysPackExtension extends Extension { //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); } /** diff --git a/Extension/PackExtension.php b/Extension/PackExtension.php index 48f93cd..40863e9 100644 --- a/Extension/PackExtension.php +++ b/Extension/PackExtension.php @@ -58,7 +58,7 @@ class PackExtension extends AbstractExtension { $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];