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
a085d9e2
Commit
a085d9e2
authored
Mar 28, 2011
by
Fabien Potencier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed Twig Translation extension name to match the one in Symfony
parent
f7550e6b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/Silex/Extension/TwigExtension.php
src/Silex/Extension/TwigExtension.php
+2
-2
No files found.
src/Silex/Extension/TwigExtension.php
View file @
a085d9e2
...
...
@@ -14,7 +14,7 @@ namespace Silex\Extension;
use
Silex\Application
;
use
Silex\ExtensionInterface
;
use
Symfony\Bridge\Twig\Extension\RoutingExtension
;
use
Symfony\Bridge\Twig\Extension\TransExtension
;
use
Symfony\Bridge\Twig\Extension\Trans
lation
Extension
;
class
TwigExtension
implements
ExtensionInterface
{
...
...
@@ -33,7 +33,7 @@ class TwigExtension implements ExtensionInterface
}
if
(
isset
(
$app
[
'translator'
]))
{
$twig
->
addExtension
(
new
TransExtension
(
$app
[
'translator'
]));
$twig
->
addExtension
(
new
Trans
lation
Extension
(
$app
[
'translator'
]));
}
}
...
...
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