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

Commit

Permalink
3.10.0
Browse files Browse the repository at this point in the history
  • Loading branch information
greg0ire authored and OskarStark committed Jun 13, 2018
1 parent efa2b90 commit 3522753
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 7 deletions.
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,20 @@
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).

## [3.10.0](https://github.com/sonata-project/SonataCoreBundle/compare/3.9.1...3.10.0) - 2018-06-12
### Fixed
- `fputcsv()` default escape character
- `SonataListFormMappingCommand::isEnabled` to only enable the command when Symfony Major Version < 3

### Added
- [Date(Time)PickerType] Handle field without seconds with option `dp_use_seconds`.
- [Date(Time)PickerType] Allow DateTime Object in `dp_min_date` and `dp_max_date`
- [Date(Time)RangePickerType] Link DateTimeRange pickers to keep start < end

### Deprecated
- `ColorType` has been deprecated
- `Colors` class has been deprecated

## [3.9.1](https://github.com/sonata-project/SonataCoreBundle/compare/3.9.0...3.9.1) - 2018-02-23
### Fixed
- Missing deprecation alert for `sonata.core.slugify.native` service
Expand Down
4 changes: 2 additions & 2 deletions src/Color/Colors.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@
namespace Sonata\CoreBundle\Color;

@trigger_error(
'The '.__NAMESPACE__.'\Colors class is deprecated since version 3.x and will be removed in 4.0.',
'The '.__NAMESPACE__.'\Colors class is deprecated since version 3.10 and will be removed in 4.0.',
E_USER_DEPRECATED
);

/**
* NEXT_MAJOR: remove this class.
*
* @deprecated since version 3.x, to be removed in 4.0.
* @deprecated since version 3.10, to be removed in 4.0.
*
* Handles A list of all HTML colors.
* @see http://www.w3schools.com/HTML/html_colornames.asp
Expand Down
2 changes: 1 addition & 1 deletion src/Form/Type/BaseStatusType.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public function __construct($class, $getter, $name, $flip = null)
$flip = true;
} else {
@trigger_error(
'Calling '.__CLASS__.' class with a flip parameter is deprecated since 3.x, to be removed with 4.0',
'Calling '.__CLASS__.' class with a flip parameter is deprecated since 3.9, to be removed with 4.0',
E_USER_DEPRECATED
);
}
Expand Down
4 changes: 2 additions & 2 deletions src/Form/Type/ColorType.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

if (class_exists('Symfony\Component\Form\Extension\Core\Type\ColorType')) {
@trigger_error(
'The '.__NAMESPACE__.'\ColorType class is deprecated since version 3.x and will be removed in 4.0.'
'The '.__NAMESPACE__.'\ColorType class is deprecated since version 3.10 and will be removed in 4.0.'
.' Use Symfony\Component\Form\Extension\Core\Type\ColorType instead.',
E_USER_DEPRECATED
);
Expand All @@ -25,7 +25,7 @@
/**
* NEXT_MAJOR: remove this class.
*
* @deprecated since version 3.x, to be removed in 4.0. Use Symfony\Component\Form\Extension\Core\Type\ColorType instead
* @deprecated since version 3.10, to be removed in 4.0. Use Symfony\Component\Form\Extension\Core\Type\ColorType instead
*/
final class ColorType extends AbstractType
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Form/Type/ColorSelectorTypeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class ColorSelectorTypeTest extends TypeTestCase
{
/**
* @group legacy
* @expectedDeprecation The Sonata\CoreBundle\Color\Colors class is deprecated since version 3.x and will be removed in 4.0.
* @expectedDeprecation The Sonata\CoreBundle\Color\Colors class is deprecated since version 3.10 and will be removed in 4.0.
*/
public function testBuildForm()
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Form/Type/ColorTypeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class ColorTypeTest extends TypeTestCase
{
/**
* @group legacy
* @expectedDeprecation The Sonata\CoreBundle\Form\Type\ColorType class is deprecated since version 3.x and will be removed in 4.0. Use Symfony\Component\Form\Extension\Core\Type\ColorType instead.
* @expectedDeprecation The Sonata\CoreBundle\Form\Type\ColorType class is deprecated since version 3.10 and will be removed in 4.0. Use Symfony\Component\Form\Extension\Core\Type\ColorType instead.
*/
public function testDeprecation()
{
Expand Down

0 comments on commit 3522753

Please sign in to comment.