From 7e9e0810ad27b62ebd5a3eefbf57cb913c0e60c3 Mon Sep 17 00:00:00 2001 From: Erison Silva Date: Wed, 7 Sep 2022 13:59:00 +0200 Subject: [PATCH] Deprecated assets option (#1595) * Deprecated assets option * Added upgrade note --- UPGRADE-3.x.md | 7 +++++++ src/DependencyInjection/Configuration.php | 6 ++++++ 2 files changed, 13 insertions(+) diff --git a/UPGRADE-3.x.md b/UPGRADE-3.x.md index 909dbeb5c..ff20e8194 100644 --- a/UPGRADE-3.x.md +++ b/UPGRADE-3.x.md @@ -1,6 +1,13 @@ UPGRADE 3.x =========== +UPGRADE FROM 3.28 to 3.29 +========================= + +### Deprecate assets config + +The `sonata_page.assets` option was deprecated, and it will be removed on 4.x + UPGRADE FROM 3.25 to 3.26 ========================= diff --git a/src/DependencyInjection/Configuration.php b/src/DependencyInjection/Configuration.php index db45d3232..df35a4ebb 100644 --- a/src/DependencyInjection/Configuration.php +++ b/src/DependencyInjection/Configuration.php @@ -181,6 +181,12 @@ public function getConfigTreeBuilder() ->end() ->arrayNode('assets') + ->setDeprecated( + ...$this->getDeprecationMessage( + 'The "assets" option is deprecated since sonata-project/page-bundle 3.28.0 and will be removed in 4.0', + '3.29' + ) + ) ->addDefaultsIfNotSet() ->children() ->arrayNode('stylesheets')