8000 Add twig-extensions extensions as services by fabpot · Pull Request #173 · symfony/recipes · GitHub
[go: up one dir, main page]

Skip to content

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

Merged
merged 1 commit into from
Sep 11, 2017
Merged

Conversation

fabpot
Copy link
Member
@fabpot fabpot commented Sep 10, 2017
Q A
License MIT

see symfony/symfony#22849

symfony-bot
symfony-bot previously approved these changes Sep 10, 2017
@javiereguiluz
Copy link
Member

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.

@fabpot
Copy link
Member Author
fabpot commented Sep 11, 2017

@javiereguiluz You're right. Perhaps we need to create a twig_extensions.yml file that is installed only when twig/extensions is installed. WDYT?

@fabpot fabpot force-pushed the twig-extensions branch 3 times, most recently from cf93bc2 to 51d19e6 Compare September 11, 2017 14:16
@@ -0,0 +1,6 @@
{
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/",
Copy link
Contributor

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

@@ -0,0 +1,6 @@
{
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/",
Copy link
Contributor

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

symfony-bot
symfony-bot previously approved these changes Sep 11, 2017
@fabpot
Copy link
Member Author
fabpot commented Sep 11, 2017

@javiereguiluz Does it look better?

stof
stof previously requested changes Sep 11, 2017

#Twig\Extensions\ArrayExtension: ~
#Twig\Extensions\DateExtension: ~
#Twig\Extensions\I18nExtension: ~
Copy link
Member

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

Copy link
Member Author

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:
Copy link
Member

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

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

symfony-bot
symfony-bot previously approved these changes Sep 11, 2017
@symfony-bot symfony-bot merged commit 9711c5d into master Sep 11, 2017
8654
@xabbuh xabbuh deleted the twig-extensions branch September 11, 2017 16:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants
0