From 9201eb816a84d65edcc61ea4e6ec8254073714a2 Mon Sep 17 00:00:00 2001 From: Carlos Reig Matut Date: Thu, 9 Jul 2015 15:22:18 +0200 Subject: [PATCH 1/3] Path fixed Path fixed since to TwigBridge v2.7 changed the folder structure --- components/form/introduction.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/form/introduction.rst b/components/form/introduction.rst index 91dce8944c4..b79d817fa05 100644 --- a/components/form/introduction.rst +++ b/components/form/introduction.rst @@ -192,7 +192,7 @@ to bootstrap or access Twig and add the :class:`Symfony\\Bridge\\Twig\\Extension // the path to TwigBridge so Twig can locate the // form_div_layout.html.twig file $vendorTwigBridgeDir = - $vendorDir.'/symfony/twig-bridge/Symfony/Bridge/Twig'; + $vendorDir.'/symfony/twig-bridge'; // the path to your other templates $viewsDir = realpath(__DIR__.'/../views'); From 05aa6ad4f4526ab4a8e926fb2190d0f235cc4b25 Mon Sep 17 00:00:00 2001 From: Carlos Reig Matut Date: Mon, 13 Jul 2015 11:38:35 +0200 Subject: [PATCH 2/3] Removed the TwigBridge library hardcoded path --- components/form/introduction.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/form/introduction.rst b/components/form/introduction.rst index b79d817fa05..7cfa80298de 100644 --- a/components/form/introduction.rst +++ b/components/form/introduction.rst @@ -189,10 +189,10 @@ to bootstrap or access Twig and add the :class:`Symfony\\Bridge\\Twig\\Extension $defaultFormTheme = 'form_div_layout.html.twig'; $vendorDir = realpath(__DIR__.'/../vendor'); - // the path to TwigBridge so Twig can locate the + // the path to TwigBridge library so Twig can locate the // form_div_layout.html.twig file - $vendorTwigBridgeDir = - $vendorDir.'/symfony/twig-bridge'; + $appVariableReflection = new \ReflectionClass( '\Symfony\Bridge\Twig\AppVariable' ); + $vendorTwigBridgeDir = dirname($appVariableReflection->getFileName()); // the path to your other templates $viewsDir = realpath(__DIR__.'/../views'); From 4d27ca910d71f2fbcdcef49f80e32f10f1c1037e Mon Sep 17 00:00:00 2001 From: Carlos Reig Matut Date: Mon, 31 Aug 2015 07:46:36 +0200 Subject: [PATCH 3/3] Removed the spaces around the parameter --- components/form/introduction.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/form/introduction.rst b/components/form/introduction.rst index 7cfa80298de..514c7a74e6c 100644 --- a/components/form/introduction.rst +++ b/components/form/introduction.rst @@ -191,7 +191,7 @@ to bootstrap or access Twig and add the :class:`Symfony\\Bridge\\Twig\\Extension $vendorDir = realpath(__DIR__.'/../vendor'); // the path to TwigBridge library so Twig can locate the // form_div_layout.html.twig file - $appVariableReflection = new \ReflectionClass( '\Symfony\Bridge\Twig\AppVariable' ); + $appVariableReflection = new \ReflectionClass('\Symfony\Bridge\Twig\AppVariable'); $vendorTwigBridgeDir = dirname($appVariableReflection->getFileName()); // the path to your other templates $viewsDir = realpath(__DIR__.'/../views');