]> Raphaël G. Git Repositories - packbundle/commitdiff
Call self::getAlias
authorRaphaël Gertz <git@rapsys.eu>
Wed, 11 Aug 2021 18:46:13 +0000 (20:46 +0200)
committerRaphaël Gertz <git@rapsys.eu>
Wed, 11 Aug 2021 18:46:13 +0000 (20:46 +0200)
DependencyInjection/RapsysPackExtension.php
Extension/PackExtension.php

index 94b9fadf9cf4b180655fb88f2a12e23d7272f75f..c73e90ce9fd544bd6a8f9b48585b44a7fa543290 100644 (file)
@@ -37,11 +37,11 @@ class RapsysPackExtension extends Extension {
                //Detect when no user configuration is provided
                if ($configs === [[]]) {
                        //Prepend default config
                //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
                }
 
                //Save configuration in parameters
-               $container->setParameter($this->getAlias(), $config);
+               $container->setParameter(self::getAlias(), $config);
        }
 
        /**
        }
 
        /**
index 48f93cd3b584caa87005d5fed8affe832d15ee19..40863e9979e65476bd7d73ec71b92b56d8875ff9 100644 (file)
@@ -58,7 +58,7 @@ class PackExtension extends AbstractExtension {
                $this->package = $package;
 
                //Retrieve bundle 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];
                        //Set config, output and filters arrays
                        foreach(['config', 'output', 'filters'] as $k) {
                                $this->$k = $parameters[$k];