Skip to content

Commit

Permalink
2.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
greg0ire committed Jul 30, 2020
1 parent a582576 commit 0f9832e
Show file tree
Hide file tree
Showing 8 changed files with 46 additions and 7 deletions.
39 changes: 39 additions & 0 deletions CHANGELOG.md
Expand Up @@ -2,6 +2,45 @@
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).

## [2.8.0](https://github.com/sonata-project/SonataIntlBundle/compare/2.7.0...2.8.0) - 2020-07-30
### Added
- [[#308](https://github.com/sonata-project/SonataIntlBundle/pull/308)] Added
support for Symfony 5 ([@jordisala1991](https://github.com/jordisala1991))
- [[#308](https://github.com/sonata-project/SonataIntlBundle/pull/308)] Added
support for Twig 3 ([@jordisala1991](https://github.com/jordisala1991))
- [[#306](https://github.com/sonata-project/SonataIntlBundle/pull/306)] Added
support for "symfony/intl:^5". ([@phansys](https://github.com/phansys))
- [[#300](https://github.com/sonata-project/SonataIntlBundle/pull/300)] Added
`TimezoneAwareInterface` interface and `TimezoneAwareTrait` trait.
([@phansys](https://github.com/phansys))

### Changed
- [[#282](https://github.com/sonata-project/SonataIntlBundle/pull/282)] Bump SF
to 4.4 ([@bmaziere](https://github.com/bmaziere))
- [[#279](https://github.com/sonata-project/SonataIntlBundle/pull/279)] Do not
resolve the `kernel.default_locale` parameter when configuring the locale in
the bundle extension. ([@fancyweb](https://github.com/fancyweb))

### Deprecated
- [[#300](https://github.com/sonata-project/SonataIntlBundle/pull/300)]
Deprecated timezone inference based on
`Sonata\UserBundle\Model\User::getTimezone()`.
([@phansys](https://github.com/phansys))

### Fixed
- [[#304](https://github.com/sonata-project/SonataIntlBundle/pull/304)] Fixed
exception thrown when calling `self::expectDeprecation()` from the test
suite. ([@phansys](https://github.com/phansys))

### Removed
- [[#300](https://github.com/sonata-project/SonataIntlBundle/pull/300)] Removed
dependency suggestion against "sonata-project/user-bundle".
([@phansys](https://github.com/phansys))
- [[#272](https://github.com/sonata-project/SonataIntlBundle/pull/272)] Support
for Symfony < 3.4 ([@franmomu](https://github.com/franmomu))
- [[#272](https://github.com/sonata-project/SonataIntlBundle/pull/272)] Support
for Symfony >= 4, < 4.2 ([@franmomu](https://github.com/franmomu))

## [2.7.0](https://github.com/sonata-project/SonataIntlBundle/compare/2.6.0...2.7.0) - 2019-08-08

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion src/DependencyInjection/Compiler/StrictPass.php
Expand Up @@ -20,7 +20,7 @@
/**
* NEXT_MAJOR: remove this class.
*
* @deprecated since sonata-project/intl-bundle 2.x, to be removed in version 3.0.
* @deprecated since sonata-project/intl-bundle 2.8, to be removed in version 3.0.
*/
final class StrictPass implements CompilerPassInterface
{
Expand Down
2 changes: 1 addition & 1 deletion src/Locale/RequestDetector.php
Expand Up @@ -18,7 +18,7 @@
/**
* NEXT_MAJOR: remove this class.
*
* @deprecated since sonata-project/intl-bundle 2.x, to be removed in version 3.0.
* @deprecated since sonata-project/intl-bundle 2.8, to be removed in version 3.0.
*/
class RequestDetector implements LocaleDetectorInterface
{
Expand Down
2 changes: 1 addition & 1 deletion src/Resources/config/intl.xml
Expand Up @@ -14,7 +14,7 @@
</parameters>
<services>
<service id="sonata.intl.locale_detector.request" class="%sonata.intl.locale_detector.request.class%" public="true">
<deprecated>The "%service_id%" service is deprecated since sonata-project/intl-bundle 2.x and will be removed in 3.0.</deprecated>
<deprecated>The "%service_id%" service is deprecated since sonata-project/intl-bundle 2.8 and will be removed in 3.0.</deprecated>
<argument type="service" id="service_container"/>
<argument/>
</service>
Expand Down
2 changes: 1 addition & 1 deletion src/Timezone/UserBasedTimezoneDetector.php
Expand Up @@ -50,7 +50,7 @@ public function getTimezone()
// NEXT_MAJOR: Remove this check and the related documentation at `docs/reference/configuration.rst`.
if ($user instanceof User) {
@trigger_error(sprintf(
'Timezone inference based on the "%s" class is deprecated since sonata-project/intl-bundle 2.x and will be dropped in 3.0 version.'
'Timezone inference based on the "%s" class is deprecated since sonata-project/intl-bundle 2.8 and will be dropped in 3.0 version.'
.' Implement "%s" explicitly in your user class instead.',
User::class,
TimezoneAwareInterface::class
Expand Down
2 changes: 1 addition & 1 deletion src/Twig/Extension/DateTimeExtension.php
Expand Up @@ -104,7 +104,7 @@ public function formatDatetime($time, $pattern = null, $locale = null, $timezone
/**
* NEXT_MAJOR: remove this method.
*
* @deprecated since sonata-project/intl-bundle 2.x, to be removed in version 3.0.
* @deprecated since sonata-project/intl-bundle 2.8, to be removed in version 3.0.
*/
public function getName()
{
Expand Down
2 changes: 1 addition & 1 deletion src/Twig/Extension/LocaleExtension.php
Expand Up @@ -88,7 +88,7 @@ public function language($code, $locale = null)
/**
* NEXT_MAJOR: remove this method.
*
* @deprecated since sonata-project/intl-bundle 2.x, to be removed in version 3.0.
* @deprecated since sonata-project/intl-bundle 2.8, to be removed in version 3.0.
*/
public function getName()
{
Expand Down
2 changes: 1 addition & 1 deletion src/Twig/Extension/NumberExtension.php
Expand Up @@ -58,7 +58,7 @@ public function getFilters()
/**
* NEXT_MAJOR: remove this method.
*
* @deprecated since sonata-project/intl-bundle 2.x, to be removed in version 3.0.
* @deprecated since sonata-project/intl-bundle 2.8, to be removed in version 3.0.
*/
public function getName()
{
Expand Down

0 comments on commit 0f9832e

Please sign in to comment.