From 600a6185a35e5e92bddd4e05894ae39f83a442d6 Mon Sep 17 00:00:00 2001 From: Benjamin Dalsass Date: Wed, 22 Oct 2025 11:30:48 +0200 Subject: [PATCH] =?UTF-8?q?N=C2=B08771=20-=20Add=20Symfony=20form=20compon?= =?UTF-8?q?ent=20to=20iTop=20core=20-=20restore=20$aAdditionalPaths=20miss?= =?UTF-8?q?ing=20parameter?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sources/Application/TwigBase/Controller/Controller.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sources/Application/TwigBase/Controller/Controller.php b/sources/Application/TwigBase/Controller/Controller.php index bc70652af..48b6770c3 100644 --- a/sources/Application/TwigBase/Controller/Controller.php +++ b/sources/Application/TwigBase/Controller/Controller.php @@ -120,7 +120,7 @@ abstract class Controller extends AbstractController $this->SetModuleName($sModuleName); // Initialize Symfony components - $this->InitSymfonyComponents($sViewPath, $sModuleName); + $this->InitSymfonyComponents($sViewPath, $sModuleName, $aAdditionalPaths); $this->InitDebugExtensions(); } @@ -129,10 +129,12 @@ abstract class Controller extends AbstractController * * @param string $sViewPath * @param string $sModuleName + * @param array $aAdditionalPaths * * @return void + * @throws \ReflectionException */ - private function InitSymfonyComponents(string $sViewPath, string $sModuleName): void + private function InitSymfonyComponents(string $sViewPath, string $sModuleName, array $aAdditionalPaths): void { // Twig environment $aAdditionalPaths[] = APPROOT.'lib/symfony/twig-bridge/Resources/views/Form';