Skip to content

Commit 815f531

Browse files
committed
Replaced the priority paragraph with a note and a table
1 parent db2c002 commit 815f531

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

reference/dic_tags.rst

+17-3
Original file line numberDiff line numberDiff line change
@@ -460,9 +460,23 @@ To register your warmer with Symfony, give it the ``kernel.cache_warmer`` tag:
460460
->addTag('kernel.cache_warmer', array('priority' => 0))
461461
;
462462
463-
The ``priority`` value is optional, and defaults to 0. The core Symfony
464-
listeners priorities vary from -1024 to 1024 and the warmers will be
465-
executed in the order of their priority.
463+
.. note::
464+
465+
The ``priority`` value is optional, and defaults to 0.
466+
The higher the priority, the sooner it gets executed.
467+
468+
kernel.cache_warmer
469+
..............
470+
471+
+-------------------------------------------------------------------------------------------+-----------+
472+
| Cache Warmer Class Name | Priority |
473+
+-------------------------------------------------------------------------------------------+-----------+
474+
| :class:`Symfony\\Bundle\\FrameworkBundle\\CacheWarmer\\TemplatePathsCacheWarmer` | 20 |
475+
+-------------------------------------------------------------------------------------------+-----------+
476+
| :class:`Symfony\\Bundle\\FrameworkBundle\\CacheWarmer\\RouterCacheWarmer` | 0 |
477+
+-------------------------------------------------------------------------------------------+-----------+
478+
| :class:`Symfony\\Bundle\\TwigBundle\\CacheWarmer\\TemplateCacheCacheWarmer` | 0 |
479+
+-------------------------------------------------------------------------------------------+-----------+
466480
467481
.. _dic-tags-kernel-event-listener:
468482

0 commit comments

Comments
 (0)