Skip to content

Commit

Permalink
OXDEV-8498 Add service deprecation [squash it]
Browse files Browse the repository at this point in the history
  • Loading branch information
liulka-oxid committed Jan 28, 2025
1 parent 40fdb04 commit cafc9e4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
7 changes: 3 additions & 4 deletions CHANGELOG-2.x.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,14 @@
## v2.6.0 - Unreleased

### Added
- Twig ^v3.14 support
- PHPUnit v11 support

### Removed
- PHPUnit v10 support

### Deprecated
- `DateFormatExtension` will be replaced by Twig date filter

### Changed
- Twig v3.14 was set as the minimal supported version

## v2.5.0 - 2024-10-14

### Removed
Expand Down
4 changes: 4 additions & 0 deletions services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,10 @@ services:
arguments:
- '@OxidEsales\EshopCommunity\Internal\Transition\Adapter\TemplateLogic\DateFormatHelper'
tags: ['twig.extension']
deprecated:
package: 'oxid-esales/twig-component'
version: '2.6.0'
message: 'The "%service_id%" service is deprecated.'

OxidEsales\Twig\Extensions\Filters\TranslateExtension:
arguments:
Expand Down
2 changes: 1 addition & 1 deletion src/Extensions/Filters/DateFormatExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
use Twig\TwigFilter;

/**
* @deprecated in next major version, use twig date filter
* @deprecated will be removed in next major version, use Twig's date filter instead
*/
class DateFormatExtension extends AbstractExtension
{
Expand Down

0 comments on commit cafc9e4

Please sign in to comment.