From 44ea2f60a6d17b6c9475a6e87a1f520200c7d036 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Wed, 11 Aug 2021 20:46:13 +0200 Subject: [PATCH] Call self::getAlias --- DependencyInjection/RapsysPackExtension.php | 4 ++-- Extension/PackExtension.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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]; -- 2.41.1