Skip to content

Commit

Permalink
3.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
soullivaneuh committed Oct 25, 2017
1 parent 978f0cf commit e9722f2
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Block/Service/MenuBlockService.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class MenuBlockService extends AbstractAdminBlockService
*
* @var array
*
* @deprecated since 3.x, to be removed in 4.0
* @deprecated since 3.3, to be removed in 4.0
*/
protected $menus;

Expand All @@ -64,7 +64,7 @@ public function __construct($name, EngineInterface $templating, MenuProviderInte
$this->menuRegistry = $menuRegistry;
} else {
@trigger_error(
'Initializing '.__CLASS__.' with an array parameter is deprecated since 3.x and will be removed in 4.0.',
'Initializing '.__CLASS__.' with an array parameter is deprecated since 3.3 and will be removed in 4.0.',
E_USER_DEPRECATED
);
$this->menus = $menuRegistry;
Expand Down
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/).

## [3.5.0](https://github.com/sonata-project/SonataBlockBundle/compare/3.4.0...3.5.0) - 2017-10-25
### Added
- support for sonata/cache 2

### Deprecated
- Option resolver BC trick.

### Fixed
- OutOfBoundsException while replacing block service default name argument

### Removed
- Support for old versions of PHP and Symfony.

## [3.4.0](https://github.com/sonata-project/SonataBlockBundle/compare/3.3.2...3.4.0) - 2017-09-19
### Added
- added block annotation
Expand Down
2 changes: 1 addition & 1 deletion DependencyInjection/Compiler/TweakCompilerPass.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function process(ContainerBuilder $container)
)) {
// NEXT_MAJOR: Remove deprecation notice
@trigger_error(
sprintf('Using service id %s different from block id %s is deprecated since 3.x and will be removed in 4.0.', $id, $arguments[0]),
sprintf('Using service id %s different from block id %s is deprecated since 3.3 and will be removed in 4.0.', $id, $arguments[0]),
E_USER_DEPRECATED
);
}
Expand Down
2 changes: 1 addition & 1 deletion DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ public function getConfigTreeBuilder()
->always(function ($value) {
if (count($value) > 0) {
@trigger_error(
'The menus configuration key is deprecated since 3.x and will be removed in 4.0.',
'The menus configuration key is deprecated since 3.3 and will be removed in 4.0.',
E_USER_DEPRECATED
);
}
Expand Down
2 changes: 1 addition & 1 deletion Menu/MenuRegistry.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function __construct($menus = null)
$this->names = $menus;

@trigger_error(
'The menus parameter in '.__CLASS__.' is deprecated since 3.x and will be removed in 4.0.',
'The menus parameter in '.__CLASS__.' is deprecated since 3.3 and will be removed in 4.0.',
E_USER_DEPRECATED
);
}
Expand Down
2 changes: 1 addition & 1 deletion Resources/stubs/symfony2.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

if (!interface_exists('Symfony\Component\OptionsResolver\OptionsResolverInterface')) {
/**
* @deprecated since 3.x, to be removed in 4.0. Use \Symfony\Component\OptionsResolver\OptionsResolver instead.
* @deprecated since 3.5, to be removed in 4.0. Use \Symfony\Component\OptionsResolver\OptionsResolver instead.
*/
interface OptionsResolverInterface
{
Expand Down
3 changes: 3 additions & 0 deletions UPGRADE-3.x.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
UPGRADE 3.x
===========

UPGRADE FROM 3.4 to 3.5
=======================

## Deprecated options resolver BC tricks.

Since we require at least Symfony 2.8, this BC trick is not needed anymore.
Expand Down
2 changes: 1 addition & 1 deletion Util/OptionsResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
use Symfony\Component\OptionsResolver\OptionsResolverInterface;

/**
* @deprecated since version 3.x, to be removed in 4.0. Use \Symfony\Component\OptionsResolver\OptionsResolver instead.
* @deprecated since version 3.5, to be removed in 4.0. Use \Symfony\Component\OptionsResolver\OptionsResolver instead.
*/
class OptionsResolver extends \Symfony\Component\OptionsResolver\OptionsResolver implements OptionsResolverInterface
{
Expand Down

0 comments on commit e9722f2

Please sign in to comment.