Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commit80c645c

Browse files
committed
featuresymfony#3719 Fixed event listeners priority (tony-co)
This PR was submitted for the master branch but it was merged into the 2.3 branch instead (closessymfony#3719).Discussion----------Fixed event listeners priority| Q | A| ------------- | ---| Doc fix? | yes| New docs? | no| Applies to | all| Fixed tickets | -Commits-------47d4d4f Fixed title level consistency1dbfd29 Updated title for the core cache warmersa9d07a5 Fixed title underline815f531 Replaced the priority paragraph with a note and a tabledb2c002 Fixed event listeners priority (typos after review)13b5645 Fixed event listeners priority
2 parentsfa362ca +9436548 commit80c645c

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

‎reference/dic_tags.rst

Lines 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. This value can be
467-
from -255 to 255, and the warmers will be executed in the order of their
468-
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+
Core Cache Warmers
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)

[8]ページ先頭

©2009-2025 Movatter.jp