File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -189,10 +189,10 @@ to bootstrap or access Twig and add the :class:`Symfony\\Bridge\\Twig\\Extension
189
189
$defaultFormTheme = 'form_div_layout.html.twig';
190
190
191
191
$vendorDir = realpath(__DIR__.'/../vendor');
192
- // the path to TwigBridge so Twig can locate the
192
+ // the path to TwigBridge library so Twig can locate the
193
193
// form_div_layout.html.twig file
194
- $vendorTwigBridgeDir =
195
- $vendorDir.'/symfony/twig-bridge/Symfony/Bridge/Twig' ;
194
+ $appVariableReflection = new \ReflectionClass('\Symfony\Bridge\Twig\AppVariable');
195
+ $vendorTwigBridgeDir = dirname($appVariableReflection->getFileName()) ;
196
196
// the path to your other templates
197
197
$viewsDir = realpath(__DIR__.'/../views');
198
198
You can’t perform that action at this time.
0 commit comments