Skip to content

Commit 41f6c94

Browse files
rubencmmarc1706
authored andcommittedFeb 18, 2024
[ticket/17289] Fix dependency injection error when using development environment
PHPBB3-17289
1 parent c978c3b commit 41f6c94

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed
 

‎di/extension/core.php

+6-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,11 @@
2626
*/
2727
class core extends Extension
2828
{
29-
const TWIG_OPTIONS_POSITION = 7;
29+
/**
30+
* Index of array in service template.twig.environment inside services_twig.yml
31+
* @var int
32+
*/
33+
const TWIG_OPTIONS_POSITION = 8;
3034

3135
/**
3236
* Config path
@@ -86,7 +90,7 @@ public function load(array $configs, ContainerBuilder $container)
8690
$twig_environment_options['auto_reload'] = true;
8791
}
8892

89-
// Replace the 7th argument, the options passed to the environment
93+
// Replace the 8th argument, the options passed to the environment
9094
$definition->replaceArgument(static::TWIG_OPTIONS_POSITION, $twig_environment_options);
9195

9296
if ($config['twig']['enable_debug_extension'])

0 commit comments

Comments
 (0)
Please sign in to comment.