File tree Expand file tree Collapse file tree 5 files changed +23
-16
lines changed
Filter options
Expand file tree Collapse file tree 5 files changed +23
-16
lines changed
Original file line number Diff line number Diff line change @@ -35,6 +35,22 @@ template from the FOSUserBundle, create this template:
35
35
If you add a template in a new location, you *may * need to clear your
36
36
cache (``php bin/console cache:clear ``), even if you are in debug mode.
37
37
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
+
38
54
.. _templating-overriding-core-templates :
39
55
40
56
.. tip ::
Original file line number Diff line number Diff line change @@ -63,9 +63,6 @@ Active Core Members
63
63
* **Tobias Schultze ** (`Tobion `_) can merge into the Routing _,
64
64
OptionsResolver _ and PropertyAccess _ components;
65
65
66
- * **Romain Neutron ** (`romainneutron `_) can merge into the
67
- Process _ component;
68
-
69
66
* **Nicolas Grekas ** (`nicolas-grekas `_) can merge into the Cache _, Debug _,
70
67
Process _, PropertyAccess _, VarDumper _ components, PhpUnitBridge _ and
71
68
the DebugBundle _;
@@ -125,7 +122,8 @@ They are no longer part of the core team, but we are very grateful for all their
125
122
Symfony contributions:
126
123
127
124
* **Bernhard Schussek ** (`webmozart `_);
128
- * **Abdellatif AitBoudad ** (`aitboudad `_).
125
+ * **Abdellatif AitBoudad ** (`aitboudad `_);
126
+ * **Romain Neutron **.
129
127
130
128
Core Membership Application
131
129
~~~~~~~~~~~~~~~~~~~~~~~~~~~
Original file line number Diff line number Diff line change @@ -170,25 +170,16 @@ Make sure you clear and warm-up your Symfony cache:
170
170
171
171
$ php bin/console cache:clear --env=prod --no-debug
172
172
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!
183
174
~~~~~~~~~~~~~~~~
184
175
185
176
There may be lots of other things that you need to do, depending on your
186
177
setup:
187
178
188
179
* Running any database migrations
189
180
* Clearing your APC cache
190
- * Running ``assets:install `` (already taken care of in ``composer install ``)
191
181
* Add/edit CRON jobs
182
+ * ref:`Building and minifying your assets <how-do-i-deploy-my-encore-assets> ` with Webpack Encore
192
183
* Pushing assets to a CDN
193
184
* ...
194
185
Original file line number Diff line number Diff line change 1
1
FAQ and Common Issues
2
2
=====================
3
3
4
+ .. _how-do-i-deploy-my-encore-assets :
5
+
4
6
How do I deploy my Encore Assets?
5
7
---------------------------------
6
8
Original file line number Diff line number Diff line change @@ -710,7 +710,7 @@ If your custom authentication factory extends
710
710
:class: `Symfony\\ Bundle\\ SecurityBundle\\ DependencyInjection\\ Security\\ Factory\\ AbstractFactory `
711
711
and your custom authentication listener extends
712
712
: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
714
714
applied and it will function automatically.
715
715
716
716
security.voter
You can’t perform that action at this time.
0 commit comments