Skip to content

Commit

Permalink
4.18.0 (#1118)
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentLanglet authored Sep 28, 2022
1 parent ebe82c8 commit 79a2c65
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 11 deletions.
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,19 @@
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).

## [4.18.0](https://github.com/sonata-project/SonataBlockBundle/compare/4.17.0...4.18.0) - 2022-09-28
### Added
- [[#1112](https://github.com/sonata-project/SonataBlockBundle/pull/1112)] AbstractMenuBlockService ([@VincentLanglet](https://github.com/VincentLanglet))
- [[#1111](https://github.com/sonata-project/SonataBlockBundle/pull/1111)] Final annotation to MenuBlockService ([@VincentLanglet](https://github.com/VincentLanglet))

### Changed
- [[#1115](https://github.com/sonata-project/SonataBlockBundle/pull/1115)] BlockServiceManager::load throw a BlockServiceNotFoundException when the block is not found. ([@JeromeEngelnAdeliom](https://github.com/JeromeEngelnAdeliom))

### Deprecated
- [[#1112](https://github.com/sonata-project/SonataBlockBundle/pull/1112)] MenuBlockService current_uri option ([@VincentLanglet](https://github.com/VincentLanglet))
- [[#1112](https://github.com/sonata-project/SonataBlockBundle/pull/1112)] MenuBlockService menu_class option ([@VincentLanglet](https://github.com/VincentLanglet))
- [[#1112](https://github.com/sonata-project/SonataBlockBundle/pull/1112)] MenuBlockService children_class option ([@VincentLanglet](https://github.com/VincentLanglet))

## [4.17.0](https://github.com/sonata-project/SonataBlockBundle/compare/4.16.2...4.17.0) - 2022-08-27
### Added
- [[#1100](https://github.com/sonata-project/SonataBlockBundle/pull/1100)] Add `removeChild` to be consistent with `addChild` for Block Model. ([@jordisala1991](https://github.com/jordisala1991))
Expand Down
14 changes: 7 additions & 7 deletions src/Block/Service/MenuBlockService.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
/**
* @author Hugo Briand <[email protected]>
*
* @final since sonata-project/block-bundle 4.x
* @final since sonata-project/block-bundle 4.18
*/
class MenuBlockService extends AbstractMenuBlockService implements EditableBlockService
{
Expand Down Expand Up @@ -76,26 +76,26 @@ public function configureSettings(OptionsResolver $resolver): void
$resolver->setDeprecated(
'current_uri',
...$this->deprecationParameters(
'4.x',
'Option "current_uri" is deprecated since sonata-project/block-bundle 4.x and will be removed in 5.0.'
'4.18',
'Option "current_uri" is deprecated since sonata-project/block-bundle 4.18 and will be removed in 5.0.'
)
);

// NEXT_MAJOR: Remove setDeprecated.
$resolver->setDeprecated(
'menu_class',
...$this->deprecationParameters(
'4.x',
'Option "menu_class" is deprecated since sonata-project/block-bundle 4.x and will be removed in 5.0.'
'4.18',
'Option "menu_class" is deprecated since sonata-project/block-bundle 4.18 and will be removed in 5.0.'
)
);

// NEXT_MAJOR: Remove setDeprecated.
$resolver->setDeprecated(
'children_class',
...$this->deprecationParameters(
'4.x',
'Option "children_class" is deprecated since sonata-project/block-bundle 4.x and will be removed in 5.0.'
'4.18',
'Option "children_class" is deprecated since sonata-project/block-bundle 4.18 and will be removed in 5.0.'
)
);
}
Expand Down
4 changes: 2 additions & 2 deletions src/Model/BaseBlock.php
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ public function addChildren(BlockInterface $children): void
{
@trigger_error(
sprintf(
'Method "%s" is deprecated since sonata-project/block-bundle 4.x. Use "addChild" instead.',
'Method "%s" is deprecated since sonata-project/block-bundle 4.18. Use "addChild" instead.',
__METHOD__
),
\E_USER_DEPRECATED
Expand Down Expand Up @@ -273,7 +273,7 @@ public function hasChildren(): bool
{
@trigger_error(
sprintf(
'Method "%s" is deprecated since sonata-project/block-bundle 4.x. Use "hasChild" instead.',
'Method "%s" is deprecated since sonata-project/block-bundle 4.18. Use "hasChild" instead.',
__METHOD__
),
\E_USER_DEPRECATED
Expand Down
4 changes: 2 additions & 2 deletions src/Model/BlockInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public function getSetting(string $name, $default = null);
/**
* NEXT_MAJOR: Rename addChild().
*
* @deprecated since sonata-project/block-bundle 4.x. Use addChild() instead.
* @deprecated since sonata-project/block-bundle 4.18. Use addChild() instead.
*/
public function addChildren(self $children): void;

Expand All @@ -102,7 +102,7 @@ public function getChildren();
/**
* NEXT_MAJOR: Rename hasChild().
*
* @deprecated since sonata-project/block-bundle 4.x. Use hasChild() instead.
* @deprecated since sonata-project/block-bundle 4.18. Use hasChild() instead.
*/
public function hasChildren(): bool;

Expand Down

0 comments on commit 79a2c65

Please sign in to comment.