Skip to content

Commit 865efd4

Browse files
committed
bug #5507 Path fixed (carlosreig)
This PR was submitted for the 2.7 branch but it was merged into the 2.3 branch instead (closes #5507). Discussion ---------- Path fixed Path fixed since TwigBridge v2.7 changed the folder structure Commits ------- 8d7b5db Path fixed
2 parents cf68425 + 8d7b5db commit 865efd4

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)