From fa446972465f54a247a52b87d345525a4bce3558 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Tue, 3 Apr 2018 06:32:53 +0200 Subject: [PATCH] Fix parameter naming --- Twig/Filter/CPackFilter.php | 4 ++-- Twig/Filter/JPackFilter.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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; -- 2.41.1