From: Raphaƫl Gertz Date: Tue, 3 Apr 2018 04:32:53 +0000 (+0200) Subject: Fix parameter naming X-Git-Tag: 0.0.2~6 X-Git-Url: https://git.rapsys.eu/packbundle/commitdiff_plain/fa446972465f54a247a52b87d345525a4bce3558?hp=841a8835e903a514e2e44706bf4974f3cc21104b Fix parameter naming --- diff --git a/Twig/Filter/CPackFilter.php b/Twig/Filter/CPackFilter.php index dff71c9..806385a 100644 --- a/Twig/Filter/CPackFilter.php +++ b/Twig/Filter/CPackFilter.php @@ -23,8 +23,8 @@ class CPackFilter implements FilterInterface { //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; diff --git a/Twig/Filter/JPackFilter.php b/Twig/Filter/JPackFilter.php index 43aeb86..7e1d5c6 100644 --- a/Twig/Filter/JPackFilter.php +++ b/Twig/Filter/JPackFilter.php @@ -22,8 +22,8 @@ class JPackFilter implements FilterInterface { 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;