Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
S
Silex
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
common
Silex
Commits
6615118d
Commit
6615118d
authored
May 02, 2017
by
Pascal Luna
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix deprecation notice with symfony/twig-bridge 3.2+ in TwigServiceProvider
parent
1b2f0394
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/Silex/Provider/TwigServiceProvider.php
src/Silex/Provider/TwigServiceProvider.php
+1
-1
No files found.
src/Silex/Provider/TwigServiceProvider.php
View file @
6615118d
...
...
@@ -109,7 +109,7 @@ class TwigServiceProvider implements ServiceProviderInterface
return
new
TwigRenderer
(
$app
[
'twig.form.engine'
],
$csrfTokenManager
);
};
$twig
->
addExtension
(
new
FormExtension
(
$app
[
'twig.form.renderer'
]));
$twig
->
addExtension
(
new
FormExtension
(
class_exists
(
HttpKernelRuntime
::
class
)
?
null
:
$app
[
'twig.form.renderer'
]));
// add loader for Symfony built-in form templates
$reflected
=
new
\ReflectionClass
(
'Symfony\Bridge\Twig\Extension\FormExtension'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment