-
-
Notifications
You must be signed in to change notification settings - Fork 495
Add twig-extensions extensions as services #173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This looks a bit confusing to me. Twig extensions are a different project/repo from Twig, so if you uncomment this, you'll see an error (unless you install extensions). And having this config if you don't use extensions, looks strange. |
@javiereguiluz You're right. Perhaps we need to create a |
cf93bc2
to
51d19e6
Compare
twig/extensions/1.0/manifest.json
Outdated
@@ -0,0 +1,6 @@ | |||
{ | |||
"copy-from-recipe": { | |||
"config/": "%CONFIG_DIR%/", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
invalid character '}' looking for beginning of object key string
twig/extensions/1.0/manifest.json
Outdated
@@ -0,0 +1,6 @@ | |||
{ | |||
"copy-from-recipe": { | |||
"config/": "%CONFIG_DIR%/", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
invalid character '}' looking for beginning of object key string
51d19e6
to
7e9fae8
Compare
@javiereguiluz Does it look better? |
|
||
#Twig\Extensions\ArrayExtension: ~ | ||
#Twig\Extensions\DateExtension: ~ | ||
#Twig\Extensions\I18nExtension: ~ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this one should not be included IMO, as it conflicts with the Symfony TranslatorExtension
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed
@@ -0,0 +1,10 @@ | |||
services: | |||
_defaults: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should also have public: false
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
7e9fae8
to
d984acf
Compare
d984acf
to
6368f73
Compare
see symfony/symfony#22849