From 73cd2908363ff51f26e7260a08e3fec04b774eac Mon Sep 17 00:00:00 2001 From: Ilya Antipenko Date: Fri, 19 Jan 2018 17:00:17 +0200 Subject: [PATCH 1/2] Add information about default value for decoration_priority --- service_container/service_decoration.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service_container/service_decoration.rst b/service_container/service_decoration.rst index b89cc3fb26a..dd12d5261ad 100644 --- a/service_container/service_decoration.rst +++ b/service_container/service_decoration.rst @@ -177,7 +177,7 @@ Decoration Priority If you want to apply more than one decorator to a service, you can control their order by configuring the priority of decoration, this can be any integer number -(decorators with higher priorities will be applied first). +(decorators with higher priorities will be applied first). If ``decoration_priority`` option is omitted default value ``0`` will be used. .. configuration-block:: From 1cadefb81af4b5d63ab293bcb2d8b2396274967c Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Sat, 20 Jan 2018 09:49:54 +0100 Subject: [PATCH 2/2] Reword --- service_container/service_decoration.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/service_container/service_decoration.rst b/service_container/service_decoration.rst index dd12d5261ad..17795dab58e 100644 --- a/service_container/service_decoration.rst +++ b/service_container/service_decoration.rst @@ -175,9 +175,9 @@ Decoration Priority Prior to Symfony 2.8, the priority depends on the order in which definitions are found. -If you want to apply more than one decorator to a service, you can control their -order by configuring the priority of decoration, this can be any integer number -(decorators with higher priorities will be applied first). If ``decoration_priority`` option is omitted default value ``0`` will be used. +When applying multiple decorators to a service, you can control their order with +the ``decoration_priority`` option. Its value is an integer that defaults to +``0`` and higher priorities mean that decorators will be applied earlier. .. configuration-block::