diff --git a/CHANGELOG.md b/CHANGELOG.md index 38383ed..f45ff9f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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/). +## [1.1.0](https://github.com/sonata-project/SonataAdminBundle/compare/1.0.0...1.1.0) - 2017-11-27 +### Changed + - Changed internal folder structure to `src`, `tests` and `docs` + +### Deprecated +- Using `time` and `range` property in subclasses of `Sonata\AdminSearchBundle\Filter\AbstractDateFilter` is deprecated. Please implement `getFilterTypeClass` method which will be an abstract method. + +### Removed +- support for old versions of php and Symfony + +### Fixed +- Deprecated strings type class names usage. + ## [1.0.0](https://github.com/sonata-project/SonataAdminBundle/compare/0.1.0...1.0.0) - 2017-01-26 ### Fixed - `ElasticaDatagridBuilder` now handles autocomplete filter diff --git a/UPGRADE-1.x.md b/UPGRADE-1.x.md index 54712c8..95ce7f0 100644 --- a/UPGRADE-1.x.md +++ b/UPGRADE-1.x.md @@ -1,5 +1,8 @@ UPGRADE 1.x =========== +UPGRADE FROM 1.0 to 1.1 +======================= + ### Deprecated - Properties `time` and `range` in `Sonata\AdminSearchBundle\Filter\AbstractDateFilter` are deprecated. Implement `getFilterTypeClass` method. diff --git a/src/Filter/AbstractDateFilter.php b/src/Filter/AbstractDateFilter.php index 04cd2fb..b9dabe1 100644 --- a/src/Filter/AbstractDateFilter.php +++ b/src/Filter/AbstractDateFilter.php @@ -25,7 +25,7 @@ abstract class AbstractDateFilter extends Filter * * NEXT_MAJOR: Remove this property * - * @deprecated since 1.x, will be removed in 2.0. + * @deprecated since 1.1, will be removed in 2.0. */ protected $range = false; @@ -36,7 +36,7 @@ abstract class AbstractDateFilter extends Filter * * NEXT_MAJOR: Remove this property * - * @deprecated since 1.x, will be removed in 2.0. + * @deprecated since 1.1, will be removed in 2.0. */ protected $time = false; diff --git a/src/Filter/DateRangeFilter.php b/src/Filter/DateRangeFilter.php index 1545ebc..f1777e3 100644 --- a/src/Filter/DateRangeFilter.php +++ b/src/Filter/DateRangeFilter.php @@ -22,7 +22,7 @@ class DateRangeFilter extends AbstractDateFilter implements RangeFilterInterface * * NEXT_MAJOR: Remove this property * - * @deprecated since 1.x, will be removed in 2.0. + * @deprecated since 1.1, will be removed in 2.0. */ protected $range = true; diff --git a/src/Filter/DateTimeFilter.php b/src/Filter/DateTimeFilter.php index e904973..88a8dba 100644 --- a/src/Filter/DateTimeFilter.php +++ b/src/Filter/DateTimeFilter.php @@ -22,7 +22,7 @@ class DateTimeFilter extends AbstractDateFilter * * NEXT_MAJOR: Remove this property * - * @deprecated since 1.x, will be removed in 2.0. + * @deprecated since 1.1, will be removed in 2.0. */ protected $time = true; diff --git a/src/Filter/DateTimeRangeFilter.php b/src/Filter/DateTimeRangeFilter.php index bca3eda..190444c 100644 --- a/src/Filter/DateTimeRangeFilter.php +++ b/src/Filter/DateTimeRangeFilter.php @@ -22,7 +22,7 @@ class DateTimeRangeFilter extends AbstractDateFilter implements RangeFilterInter * * NEXT_MAJOR: Remove this property * - * @deprecated since 1.x, will be removed in 2.0. + * @deprecated since 1.1, will be removed in 2.0. */ protected $time = true; @@ -33,7 +33,7 @@ class DateTimeRangeFilter extends AbstractDateFilter implements RangeFilterInter * * NEXT_MAJOR: Remove this property * - * @deprecated since 1.x, will be removed in 2.0. + * @deprecated since 1.1, will be removed in 2.0. */ protected $range = true; diff --git a/src/Filter/TimeFilter.php b/src/Filter/TimeFilter.php index 5f5d6ea..706eb5e 100644 --- a/src/Filter/TimeFilter.php +++ b/src/Filter/TimeFilter.php @@ -11,16 +11,10 @@ namespace Sonata\AdminSearchBundle\Filter; -@trigger_error( - 'The '.__NAMESPACE__.'\TimeFilter class is deprecated since version 3.1 and will be removed in 4.0.' - .' Use '.__NAMESPACE__.'\DateTimeFilter instead.', - E_USER_DEPRECATED -); - /** * NEXT_MAJOR: Remove this class, this is same with DateTimeFilter class. * - * @deprecated since 1.x, will be removed in 2.0. Use `Sonata\AdminSearchBundle\Filter\DateTimeFilter' instead. + * @deprecated since 1.1, will be removed in 2.0. Use `Sonata\AdminSearchBundle\Filter\DateTimeFilter' instead. */ class TimeFilter extends AbstractDateFilter {