Skip to content

Commit

Permalink
Deprecated assets option (#1595)
Browse files Browse the repository at this point in the history
* Deprecated assets option

* Added upgrade note
  • Loading branch information
eerison authored Sep 7, 2022
1 parent 9389aab commit 7e9e081
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
7 changes: 7 additions & 0 deletions UPGRADE-3.x.md
Original file line number Diff line number Diff line change
@@ -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
=========================

Expand Down
6 changes: 6 additions & 0 deletions src/DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 7e9e081

Please sign in to comment.