Skip to content
This repository has been archived by the owner on Sep 30, 2021. It is now read-only.

Commit

Permalink
3.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
soullivaneuh committed Aug 25, 2016
1 parent 5a9160c commit b095c31
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 10 deletions.
27 changes: 27 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,33 @@
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).

## [3.1.0](https://github.com/sonata-project/SonataCoreBundle/compare/3.0.3...3.1.0) - 2016-08-25
### Added
- Added `AbstractWidgetTestCase` test suite
- Added static `setFormats` and `addFormat` methods to `BaseSerializerHandler`
- Added `sonata.core.serializer.formats` configuration
- Added `AbstractWidgetTestCase::getTemplatePaths` method
- Added `AbstractWidgetTestCase::getEnvironment` method
- Added `AbstractWidgetTestCase::getRenderingEngine` method

### Deprecated
- Exporter class and service : use equivalents from `sonata-project/exporter` instead.
- Deprecated the translator in `DateRangeType`, `DateTimeRangeType` and `EqualType`

### Fixed
- Fixed `BaseDoctrineORMSerializationType::buildForm` compatibility with Symfony3 forms
- Fixed `BaseStatusType::getParent ` compatibility with Symfony3 forms
- Fixed `CollectionType::configureOptions` compatibility with Symfony3 forms
- Fixed `DateRangePickerType::configureOptions` compatibility with Symfony3 forms
- Fixed `DateRangeType::configureOptions` compatibility with Symfony3 forms
- Fixed `DateTimeRangePickerType::configureOptions` compatibility with Symfony3 forms
- Fixed `DateTimeRangeType::configureOptions` compatibility with Symfony3 forms
- Removed duplicate translation in `DateRangeType`, `DateTimeRangeType` and `EqualType`

### Removed
- Internal test classes are now excluded from the autoloader
- Removed `AbstractWidgetTestCase::getTwigExtensions` method

## [3.0.3](https://github.com/sonata-project/SonataCoreBundle/compare/3.0.2...3.0.3) - 2016-06-17
### Fixed
- Add missing exporter service
Expand Down
2 changes: 1 addition & 1 deletion Exporter/Exporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
use Symfony\Component\HttpFoundation\StreamedResponse;

@trigger_error(
'The '.__NAMESPACE__.'\Exporter class is deprecated since version 3.x and will be removed in 4.0.'.
'The '.__NAMESPACE__.'\Exporter class is deprecated since version 3.1 and will be removed in 4.0.'.
' Use Exporter\Exporter instead',
E_USER_DEPRECATED
);
Expand Down
6 changes: 3 additions & 3 deletions Form/Type/DateRangeType.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,21 @@ class DateRangeType extends AbstractType
/**
* @var TranslatorInterface|null
*
* @deprecated translator property is deprecated since version 3.x, to be removed in 4.0
* @deprecated translator property is deprecated since version 3.1, to be removed in 4.0
*/
protected $translator;

/**
* @param TranslatorInterface|null $translator
*
* @deprecated translator dependency is deprecated since version 3.x, to be removed in 4.0
* @deprecated translator dependency is deprecated since version 3.1, to be removed in 4.0
*/
public function __construct(TranslatorInterface $translator = null)
{
// check if class is overloaded and notify about removing deprecated translator
if ($translator !== null && get_class($this) !== get_class() && get_class($this) !== 'Sonata\CoreBundle\Form\Type\DateRangePickerType') {
@trigger_error(
'The translator dependency in '.__CLASS__.' is deprecated since 3.x and will be removed in 4.0. '.
'The translator dependency in '.__CLASS__.' is deprecated since 3.1 and will be removed in 4.0. '.
'Please prepare your dependencies for this change.',
E_USER_DEPRECATED
);
Expand Down
6 changes: 3 additions & 3 deletions Form/Type/DateTimeRangeType.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,21 @@ class DateTimeRangeType extends AbstractType
/**
* @var TranslatorInterface|null
*
* @deprecated translator property is deprecated since version 3.x, to be removed in 4.0
* @deprecated translator property is deprecated since version 3.1, to be removed in 4.0
*/
protected $translator;

/**
* @param TranslatorInterface|null $translator
*
* @deprecated translator dependency is deprecated since version 3.x, to be removed in 4.0
* @deprecated translator dependency is deprecated since version 3.1, to be removed in 4.0
*/
public function __construct(TranslatorInterface $translator = null)
{
// check if class is overloaded and notify about removing deprecated translator
if ($translator !== null && get_class($this) !== get_class() && get_class($this) !== 'Sonata\CoreBundle\Form\Type\DateTimeRangePickerType') {
@trigger_error(
'The translator dependency in '.__CLASS__.' is deprecated since 3.x and will be removed in 4.0. '.
'The translator dependency in '.__CLASS__.' is deprecated since 3.1 and will be removed in 4.0. '.
'Please prepare your dependencies for this change.',
E_USER_DEPRECATED
);
Expand Down
6 changes: 3 additions & 3 deletions Form/Type/EqualType.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,21 +25,21 @@ class EqualType extends AbstractType
/**
* @var TranslatorInterface|null
*
* @deprecated translator property is deprecated since version 3.x, to be removed in 4.0
* @deprecated translator property is deprecated since version 3.1, to be removed in 4.0
*/
protected $translator;

/**
* @param TranslatorInterface|null $translator
*
* @deprecated translator property is deprecated since version 3.x, to be removed in 4.0
* @deprecated translator property is deprecated since version 3.1, to be removed in 4.0
*/
public function __construct(TranslatorInterface $translator = null)
{
// check if class is overloaded and notify about removing deprecated translator
if ($translator !== null && get_class($this) !== get_class()) {
@trigger_error(
'The translator dependency in '.__CLASS__.' is deprecated since 3.x and will be removed in 4.0. '.
'The translator dependency in '.__CLASS__.' is deprecated since 3.1 and will be removed in 4.0. '.
'Please prepare your dependencies for this change.',
E_USER_DEPRECATED
);
Expand Down

0 comments on commit b095c31

Please sign in to comment.