Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit865efd4

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 fixedPath fixed since TwigBridge v2.7 changed the folder structureCommits-------8d7b5db Path fixed
2 parentscf68425 +8d7b5db commit865efd4

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 TwigBridgelibraryso 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)

[8]ページ先頭

©2009-2025 Movatter.jp