mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
N°8771 - Add Symfony form component to iTop core
- restore $aAdditionalPaths missing parameter
This commit is contained in:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user