]> Raphaël G. Git Repositories - packbundle/commitdiff
Fix parameter naming
authorRaphaël Gertz <git@rapsys.eu>
Tue, 3 Apr 2018 04:32:53 +0000 (06:32 +0200)
committerRaphaël Gertz <git@rapsys.eu>
Tue, 3 Apr 2018 04:32:53 +0000 (06:32 +0200)
Twig/Filter/CPackFilter.php
Twig/Filter/JPackFilter.php

index dff71c972e22ed91dd5c95bd09e8974fd0079638..806385a5a438ad5bb40f057b472abc79acc9941c 100644 (file)
@@ -23,8 +23,8 @@ class CPackFilter implements FilterInterface {
        //Configure the object
        public function __construct(ContainerInterface $containerInterface, $fileName, $line) {
                //Load configuration
        //Configure the object
        public function __construct(ContainerInterface $containerInterface, $fileName, $line) {
                //Load configuration
-               if ($containerInterface->hasParameter('rapsys_pack.cpackfilter')) {
-                       if ($parameters = $containerInterface->getParameter('rapsys_pack.cpackfilter')) {
+               if ($containerInterface->hasParameter('rapsys_pack_cpackfilter')) {
+                       if ($parameters = $containerInterface->getParameter('rapsys_pack_cpackfilter')) {
                                foreach($parameters as $k => $v) {
                                        if (isset($this->$k)) {
                                                $this->$k = $v;
                                foreach($parameters as $k => $v) {
                                        if (isset($this->$k)) {
                                                $this->$k = $v;
index 43aeb86738456f61d053c48f1412f8d62ab2fa93..7e1d5c67ba94b6112638794cf24c407784ffbd80 100644 (file)
@@ -22,8 +22,8 @@ class JPackFilter implements FilterInterface {
 
        public function __construct(ContainerInterface $containerInterface, $fileName, $line) {
                //Load configuration
 
        public function __construct(ContainerInterface $containerInterface, $fileName, $line) {
                //Load configuration
-               if ($containerInterface->hasParameter('rapsys_pack.jpackfilter')) {
-                       if ($parameters = $containerInterface->getParameter('rapsys_pack.jpackfilter')) {
+               if ($containerInterface->hasParameter('rapsys_pack_jpackfilter')) {
+                       if ($parameters = $containerInterface->getParameter('rapsys_pack_jpackfilter')) {
                                foreach($parameters as $k => $v) {
                                        if (isset($this->$k)) {
                                                $this->$k = $v;
                                foreach($parameters as $k => $v) {
                                        if (isset($this->$k)) {
                                                $this->$k = $v;