From 23b6b9ec47598bcbbe79d1e06f41dd80f945990b Mon Sep 17 00:00:00 2001 From: Ivo Valchev Date: Mon, 29 Nov 2021 15:25:01 +0100 Subject: [PATCH 1/2] Add caching decorated services --- yaml-migrations/m_2021-11-29-services.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 yaml-migrations/m_2021-11-29-services.yaml diff --git a/yaml-migrations/m_2021-11-29-services.yaml b/yaml-migrations/m_2021-11-29-services.yaml new file mode 100644 index 000000000..29c538fb1 --- /dev/null +++ b/yaml-migrations/m_2021-11-29-services.yaml @@ -0,0 +1,15 @@ +# See: https://github.com/bolt/core/pull/2980 + +file: services.yaml +since: 5.1.0 + +add: + services: + Bolt\Cache\CanonicalCacher: + decorates: Bolt\Canonical + + Bolt\Cache\SelectOptionsCacher: + decorates: Bolt\Twig\FieldExtension + + Bolt\Cache\ContentToArrayCacher: + decorates: Bolt\Twig\JsonExtension From 28b1e6974da12917f54ff2dc90147ddf8703a140 Mon Sep 17 00:00:00 2001 From: Ivo Valchev Date: Mon, 29 Nov 2021 17:20:49 +0100 Subject: [PATCH 2/2] Move decorations to one file --- yaml-migrations/m_2021-11-22-services.yaml | 7 +++++++ yaml-migrations/m_2021-11-29-services.yaml | 15 --------------- 2 files changed, 7 insertions(+), 15 deletions(-) delete mode 100644 yaml-migrations/m_2021-11-29-services.yaml diff --git a/yaml-migrations/m_2021-11-22-services.yaml b/yaml-migrations/m_2021-11-22-services.yaml index ab60a140d..4794a1ca1 100644 --- a/yaml-migrations/m_2021-11-22-services.yaml +++ b/yaml-migrations/m_2021-11-22-services.yaml @@ -1,4 +1,5 @@ # Adding the new services for Bolt 5.1.0 +# See: https://github.com/bolt/core/pull/2980 file: services.yaml since: 5.1.0 @@ -6,3 +7,9 @@ add: services: Bolt\Cache\RelatedOptionsUtilityCacher: decorates: Bolt\Utils\RelatedOptionsUtility + Bolt\Cache\CanonicalCacher: + decorates: Bolt\Canonical + Bolt\Cache\SelectOptionsCacher: + decorates: Bolt\Twig\FieldExtension + Bolt\Cache\ContentToArrayCacher: + decorates: Bolt\Twig\JsonExtension diff --git a/yaml-migrations/m_2021-11-29-services.yaml b/yaml-migrations/m_2021-11-29-services.yaml deleted file mode 100644 index 29c538fb1..000000000 --- a/yaml-migrations/m_2021-11-29-services.yaml +++ /dev/null @@ -1,15 +0,0 @@ -# See: https://github.com/bolt/core/pull/2980 - -file: services.yaml -since: 5.1.0 - -add: - services: - Bolt\Cache\CanonicalCacher: - decorates: Bolt\Canonical - - Bolt\Cache\SelectOptionsCacher: - decorates: Bolt\Twig\FieldExtension - - Bolt\Cache\ContentToArrayCacher: - decorates: Bolt\Twig\JsonExtension