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

Appearance settings

Commit e40069e

Browse filesBrowse files
tony-coweaverryan
authored andcommitted
Replaced the priority paragraph with a note and a table
1 parent 6b745ff commit e40069e
Copy full SHA for e40069e

File tree

Expand file treeCollapse file tree

1 file changed

+17
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+17
-3
lines changed

‎reference/dic_tags.rst

Copy file name to clipboardExpand all lines: reference/dic_tags.rst
+17-3Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -463,9 +463,23 @@ To register your warmer with Symfony, give it the ``kernel.cache_warmer`` tag:
463463
->addTag('kernel.cache_warmer', array('priority' => 0))
464464
;
465465
466-
The ``priority`` value is optional, and defaults to 0. The core Symfony
467-
listeners priorities vary from -1024 to 1024 and the warmers will be
468-
executed in the order of their priority.
466+
.. note::
467+
468+
The ``priority`` value is optional, and defaults to 0.
469+
The higher the priority, the sooner it gets executed.
470+
471+
kernel.cache_warmer
472+
..............
473+
474+
+-------------------------------------------------------------------------------------------+-----------+
475+
| Cache Warmer Class Name | Priority |
476+
+-------------------------------------------------------------------------------------------+-----------+
477+
| :class:`Symfony\\Bundle\\FrameworkBundle\\CacheWarmer\\TemplatePathsCacheWarmer` | 20 |
478+
+-------------------------------------------------------------------------------------------+-----------+
479+
| :class:`Symfony\\Bundle\\FrameworkBundle\\CacheWarmer\\RouterCacheWarmer` | 0 |
480+
+-------------------------------------------------------------------------------------------+-----------+
481+
| :class:`Symfony\\Bundle\\TwigBundle\\CacheWarmer\\TemplateCacheCacheWarmer` | 0 |
482+
+-------------------------------------------------------------------------------------------+-----------+
469483
470484
.. _dic-tags-kernel-event-listener:
471485

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.