Skip to content

Commit 9003fce

Browse files
carlosreigJhonnyL
authored andcommitted
Path fixed
1 parent 44a3a70 commit 9003fce

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

components/form/introduction.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -189,10 +189,10 @@ to bootstrap or access Twig and add the :class:`Symfony\\Bridge\\Twig\\Extension
189189
$defaultFormTheme = 'form_div_layout.html.twig';
190190

191191
$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
193193
// 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());
196196
// the path to your other templates
197197
$viewsDir = realpath(__DIR__.'/../views');
198198

0 commit comments

Comments
 (0)