-
{{ post.title }}
{{ post.summary }}
- {{ url('blog_post', {'slug': post.slug}) }}
- {{ url('blog_post', {'slug': post.slug}) }}
- {{ post.publishedAt|date(format='r', timezone='GMT') }}
+ {{ url('blog_post', {slug: post.slug}) }}
+ {{ url('blog_post', {slug: post.slug}) }}
+ {{ post.publishedAt|date(format: 'r', timezone: 'GMT') }}
{{ post.author.email }}
{% for tag in post.tags %}
{{ tag.name }}
diff --git a/templates/blog/post_show.html.twig b/templates/blog/post_show.html.twig
index 87b3ffaa6..802523f9a 100644
--- a/templates/blog/post_show.html.twig
+++ b/templates/blog/post_show.html.twig
@@ -30,7 +30,7 @@
{{ render(controller('App\\Controller\\BlogController::commentForm', {post})) }}
{% else %}
-
+
{{ 'action.sign_in'|trans }}
{{ 'post.to_publish_a_comment'|trans }}
@@ -39,7 +39,7 @@
- {{ 'post.num_comments'|trans({ 'count': post.comments|length }) }}
+ {{ 'post.num_comments'|trans({count: post.comments|length}) }}
{% for comment in post.comments %}
diff --git a/templates/blog/search.html.twig b/templates/blog/search.html.twig
index e3807d902..f3d890a42 100644
--- a/templates/blog/search.html.twig
+++ b/templates/blog/search.html.twig
@@ -8,7 +8,7 @@
See https://symfony.com/bundles/ux-twig-component/current/index.html
#}
{{ component('blog_search', {
- query: query
+ query: query,
}) }}
{% endblock %}
diff --git a/templates/bundles/TwigBundle/Exception/error.html.twig b/templates/bundles/TwigBundle/Exception/error.html.twig
index 28ab5d914..c0ce81e2d 100644
--- a/templates/bundles/TwigBundle/Exception/error.html.twig
+++ b/templates/bundles/TwigBundle/Exception/error.html.twig
@@ -13,13 +13,13 @@
{% block body_id 'error' %}
{% block main %}
- {{ 'http_error.name'|trans({ 'status_code': status_code }) }}
+ {{ 'http_error.name'|trans({status_code: status_code}) }}
- {{ 'http_error.description'|trans({ 'status_code': status_code }) }}
+ {{ 'http_error.description'|trans({status_code: status_code}) }}
- {{ 'http_error.suggestion'|trans({ 'url': path('blog_index') })|raw }}
+ {{ 'http_error.suggestion'|trans({url: path('blog_index')})|raw }}
{% endblock %}
diff --git a/templates/bundles/TwigBundle/Exception/error403.html.twig b/templates/bundles/TwigBundle/Exception/error403.html.twig
index 134d11e37..889dc3f01 100644
--- a/templates/bundles/TwigBundle/Exception/error403.html.twig
+++ b/templates/bundles/TwigBundle/Exception/error403.html.twig
@@ -13,7 +13,7 @@
{% block body_id 'error' %}
{% block main %}
- {{ 'http_error.name'|trans({ 'status_code': 403 }) }}
+ {{ 'http_error.name'|trans({status_code: 403}) }}
{{ 'http_error_403.description'|trans }}
diff --git a/templates/bundles/TwigBundle/Exception/error404.html.twig b/templates/bundles/TwigBundle/Exception/error404.html.twig
index 07c6b245f..6cccc2ae7 100644
--- a/templates/bundles/TwigBundle/Exception/error404.html.twig
+++ b/templates/bundles/TwigBundle/Exception/error404.html.twig
@@ -13,13 +13,13 @@
{% block body_id 'error' %}
{% block main %}
-
{{ 'http_error.name'|trans({ 'status_code': 404 }) }}
+ {{ 'http_error.name'|trans({status_code: 404}) }}
{{ 'http_error_404.description'|trans }}
- {{ 'http_error_404.suggestion'|trans({ 'url': path('blog_index') })|raw }}
+ {{ 'http_error_404.suggestion'|trans({url: path('blog_index')})|raw }}
{% endblock %}
diff --git a/templates/bundles/TwigBundle/Exception/error500.html.twig b/templates/bundles/TwigBundle/Exception/error500.html.twig
index 475b5ae81..676c83355 100644
--- a/templates/bundles/TwigBundle/Exception/error500.html.twig
+++ b/templates/bundles/TwigBundle/Exception/error500.html.twig
@@ -13,13 +13,13 @@
{% block body_id 'error' %}
{% block main %}
- {{ 'http_error.name'|trans({ 'status_code': 500 }) }}
+ {{ 'http_error.name'|trans({status_code: 500}) }}
{{ 'http_error_500.description'|trans }}
- {{ 'http_error_500.suggestion'|trans({ 'url': path('blog_index') })|raw }}
+ {{ 'http_error_500.suggestion'|trans({url: path('blog_index')})|raw }}
{% endblock %}
diff --git a/templates/form/fields.html.twig b/templates/form/fields.html.twig
index 4ba9dcdf3..8b96e9be1 100644
--- a/templates/form/fields.html.twig
+++ b/templates/form/fields.html.twig
@@ -17,7 +17,7 @@
{% block tags_input_widget %}
- {{ form_widget(form, {'attr': {'data-toggle': 'tagsinput', 'data-tags': tags|json_encode}}) }}
+ {{ form_widget(form, {attr: {'data-toggle': 'tagsinput', 'data-tags': tags|json_encode}}) }}
{% endblock %}