Skip to content
This repository has been archived by the owner on Jul 22, 2022. It is now read-only.

Commit

Permalink
1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
soullivaneuh committed Nov 27, 2017
1 parent dee4398 commit eaa4255
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 13 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/).

## [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
Expand Down
3 changes: 3 additions & 0 deletions UPGRADE-1.x.md
Original file line number Diff line number Diff line change
@@ -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.
4 changes: 2 additions & 2 deletions src/Filter/AbstractDateFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion src/Filter/DateRangeFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion src/Filter/DateTimeFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
4 changes: 2 additions & 2 deletions src/Filter/DateTimeRangeFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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;

Expand Down
8 changes: 1 addition & 7 deletions src/Filter/TimeFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down

0 comments on commit eaa4255

Please sign in to comment.