Skip to content

Commit 2ba4c73

Browse files
committed
Merge branch '3.4' into 4.1
* 3.4: ! prefix referencing templates remove changelog toctree entry removed the changelog file removed Romain as part of the core team Update deployment.rst Fixed underline Added pre-deployment tasks and removed Assetic deployment Added reference to deploying assets
2 parents c7226d4 + 7ae9c95 commit 2ba4c73

File tree

5 files changed

+23
-16
lines changed

5 files changed

+23
-16
lines changed

bundles/override.rst

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,22 @@ template from the FOSUserBundle, create this template:
3535
If you add a template in a new location, you *may* need to clear your
3636
cache (``php bin/console cache:clear``), even if you are in debug mode.
3737

38+
Instead of overriding an entire template, you may just want to override one or
39+
more blocks. However, since you are overriding the template you want to extend
40+
from, you would end up in an infinite loop error. The solution is to use the
41+
special ``!`` prefix in the template name to tell Symfony that you want to
42+
extend from the original template, not from the overridden one:
43+
44+
.. code-block:: twig
45+
46+
{# templates/bundles/FOSUserBundle/Registration/confirmed.html.twig #}
47+
{# the special '!' prefix avoids errors when extending from an overridden template #}
48+
{% extends "@!FOSUserBundle/Registration/confirmed.html.twig" %}
49+
50+
{% block some_block %}
51+
...
52+
{% endblock %}
53+
3854
.. _templating-overriding-core-templates:
3955

4056
.. tip::

contributing/code/core_team.rst

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,6 @@ Active Core Members
6363
* **Tobias Schultze** (`Tobion`_) can merge into the Routing_,
6464
OptionsResolver_ and PropertyAccess_ components;
6565

66-
* **Romain Neutron** (`romainneutron`_) can merge into the
67-
Process_ component;
68-
6966
* **Nicolas Grekas** (`nicolas-grekas`_) can merge into the Cache_, Debug_,
7067
Process_, PropertyAccess_, VarDumper_ components, PhpUnitBridge_ and
7168
the DebugBundle_;
@@ -125,7 +122,8 @@ They are no longer part of the core team, but we are very grateful for all their
125122
Symfony contributions:
126123

127124
* **Bernhard Schussek** (`webmozart`_);
128-
* **Abdellatif AitBoudad** (`aitboudad`_).
125+
* **Abdellatif AitBoudad** (`aitboudad`_);
126+
* **Romain Neutron**.
129127

130128
Core Membership Application
131129
~~~~~~~~~~~~~~~~~~~~~~~~~~~

deployment.rst

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -170,25 +170,16 @@ Make sure you clear and warm-up your Symfony cache:
170170
171171
$ php bin/console cache:clear --env=prod --no-debug
172172
173-
E) Dump your Assetic Assets
174-
~~~~~~~~~~~~~~~~~~~~~~~~~~~
175-
176-
If you're using Assetic, you'll also want to dump your assets:
177-
178-
.. code-block:: terminal
179-
180-
$ php bin/console assetic:dump --env=prod --no-debug
181-
182-
F) Other Things!
173+
E) Other Things!
183174
~~~~~~~~~~~~~~~~
184175

185176
There may be lots of other things that you need to do, depending on your
186177
setup:
187178

188179
* Running any database migrations
189180
* Clearing your APC cache
190-
* Running ``assets:install`` (already taken care of in ``composer install``)
191181
* Add/edit CRON jobs
182+
* ref:`Building and minifying your assets <how-do-i-deploy-my-encore-assets>` with Webpack Encore
192183
* Pushing assets to a CDN
193184
* ...
194185

frontend/encore/faq.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
FAQ and Common Issues
22
=====================
33

4+
.. _how-do-i-deploy-my-encore-assets:
5+
46
How do I deploy my Encore Assets?
57
---------------------------------
68

reference/dic_tags.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,7 @@ If your custom authentication factory extends
710710
:class:`Symfony\\Bundle\\SecurityBundle\\DependencyInjection\\Security\\Factory\\AbstractFactory`
711711
and your custom authentication listener extends
712712
:class:`Symfony\\Component\\Security\\Http\\Firewall\\AbstractAuthenticationListener`,
713-
then your custom authentication listener will automatically have this tagged
713+
then your custom authentication listener will automatically have this tag
714714
applied and it will function automatically.
715715

716716
security.voter

0 commit comments

Comments
 (0)