Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Added docs for "date" and "number_format" Twig options#8116

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
xabbuh merged 4 commits intosymfony:2.7fromjaviereguiluz:fix_7530
Aug 1, 2017

Conversation

@javiereguiluz
Copy link
Member

@javiereguiluzjaviereguiluz commentedJul 4, 2017
edited
Loading

#Thisfixes#7530.

  • I don't know how to configure these options in XML format. I need help.
  • The PHP block looks changed entirely because there was an indentation issue and I removed a white space in every line.

@xabbuh
Copy link
Member

In fact, using XML to configure the formats was not possible (seesymfony/symfony#23459 for the fix).

The config will then look like this:

<?xml version="1.0" ?><containerxmlns="http://symfony.com/schema/dic/services"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xmlns:twig="http://symfony.com/schema/dic/twig"xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd        http://symfony.com/schema/dic/twig http://symfony.com/schema/dic/twig/twig-1.0.xsd">    <twig:config>        <twig:dateformat="d.m.Y, H:i:s"interval-format="%d days"timezone="Asia/Tokyo" />        <twig:number-formatdecimals="2"decimal-point=","thousands-separator="." />    </twig:config></container>

@xabbuh
Copy link
Member

Thank you@javiereguiluz.

@xabbuhxabbuh merged commitcbbfe44 intosymfony:2.7Aug 1, 2017
xabbuh added a commit that referenced this pull requestAug 1, 2017
…aviereguiluz, HeahDude)This PR was merged into the 2.7 branch.Discussion----------Added docs for "date" and "number_format" Twig options#Thisfixes#7530.* I don't know how to configure these options in XML format. I need help.* The PHP block looks changed entirely because there was an indentation issue and I removed a white space in every line.Commits-------cbbfe44 Removed an extra line543b482 Merge branch '2.7' into fix_753011e245b Updated xml config0a25c17 Added docs for "date" and "number_format" Twig options
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

1 more reviewer

@HeahDudeHeahDudeHeahDude approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

2.7

Development

Successfully merging this pull request may close these issues.

4 participants

@javiereguiluz@xabbuh@HeahDude@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp