Alexander M. Turek
18f4203827
Prepare IntegrationTestCase for static data providers
2024-09-03 15:08:40 +02:00
Fabien Potencier
976cea0403
Fix tests
2024-09-01 22:54:59 +02:00
Fabien Potencier
031c7bda4d
Allow extra extensions to use Twig 4
2024-09-01 22:39:12 +02:00
Fabien Potencier
c070cd719c
Drop support for 8.0
2024-08-10 12:32:24 +02:00
Fabien Potencier
f5e10e10f1
Fix CS
2024-08-07 19:34:09 +02:00
Fabien Potencier
82d31319bb
Fix tests
2024-07-05 07:59:36 +02:00
Fabien Potencier
0bbe173d29
feature #4107 [String] Add singularize and pluralize filter (welcoMattic, fabpot)
...
This PR was merged into the 3.x branch.
Discussion
----------
[String] Add singularize and pluralize filter
This PR follows up this one in Symfony https://github.com/symfony/symfony/pull/57245 .
It adds 2 new filters `singularize` and `pluralize`. It uses the String component, especially `EnglishInflector` and `FrenchInflector`.
Examples:
```php
{{ 'person'|pluralize('en') }} // persons
{{ 'person'|pluralize('en', false) }} // ['persons', 'people']
{{ 'personne'|pluralize('fr') }} // personnes
{{ 'personne'|pluralize('fr', false) }} // ['personnes']
{{ 'persons'|singluarize('en') }} // person
{{ 'people'|singluarize('en') }} // person
{{ 'persons'|singluarize('en', false) }} // ['person']
{{ 'personnes'|singluarize('fr') }} // personne
{{ 'personnes'|singluarize('fr', false) }} // ['personne']
{{ 'persona'|pluralize('it') }} // \InvalidArgumentException('Language "it" is not supported.')
{{ 'persone'|singluarize('it') }} // \InvalidArgumentException('Language "it" is not supported.')
```
Commits
-------
8c969d40 Tweak code and docs
cb392489 feat(string-extra): Add singularize and pluralize filter
2024-07-05 07:54:10 +02:00
Fabien Potencier
8c969d403c
Tweak code and docs
2024-07-04 08:17:15 +02:00
Mathieu Santostefano
cb392489c3
feat(string-extra): Add singularize and pluralize filter
2024-07-02 22:44:09 +02:00
Fabien Potencier
b78dee8682
Update PHPUnit config
2024-06-21 08:22:31 +02:00
Fabien Potencier
761aa56a6f
Revert "minor #4042 Auto-close PRs on subtree-splits (kbond)"
...
This reverts commit 12625c0c05 , reversing
changes made to ad934312cd .
2024-05-11 09:35:57 +02:00
Kevin Bond
b212f1bb2f
Auto-close PRs on subtree-splits
2024-04-19 08:34:22 +02:00
Fabien Potencier
f7f11ea410
Fix CS
2024-02-10 09:52:03 +01:00
Fabien Potencier
b1a8feaa55
Remove support for Twig 2.x and unmaintained Symfony versions
2024-01-25 08:19:28 +01:00
Fabien Potencier
fdb9d9eddf
Bump dependencies
2023-11-21 15:02:01 +01:00
Christian Flothmann
b8b0c39663
allow Symfony 7 packages to be installed
2023-09-11 13:25:50 +02:00
Fabien Potencier
fa5f1d4c2e
Merge branch '2.x' into 3.x
...
* 2.x:
Bump min deps
2023-07-29 17:34:56 +02:00
Fabien Potencier
c12990f9e7
Bump min deps
2023-07-29 13:31:08 +02:00
Fabien Potencier
08d2037f26
Bump version to 3.6
2023-02-09 07:45:16 +01:00
Fabien Potencier
4650d37fb2
Merge branch '2.x' into 3.x
...
* 2.x:
Fix LICENSE year
2023-02-08 08:44:55 +01:00
Fabien Potencier
872646a70f
Fix LICENSE year
2023-02-08 08:44:48 +01:00
Fabien Potencier
0cfb6f55e9
Merge branch '2.x' into 3.x
...
* 2.x:
Bump LICENSE year
Bump version
Prepare the 2.15.4 release
2023-01-01 09:43:26 +01:00
Fabien Potencier
eb8bde3c41
Bump LICENSE year
2023-01-01 09:42:51 +01:00
Fabien Potencier
0c8f5b2ea4
Bump version to 3.5
2022-12-27 13:23:36 +01:00
Fabien Potencier
5aad8295af
Merge branch '2.x' into 3.x
...
* 2.x:
Bump license year
Typo fix : "flexiblity" ➤ "flexibility"
allow translation-contracts:^3
2022-01-02 11:02:25 +01:00
Fabien Potencier
ce97157b43
Bump license year
2022-01-02 11:02:19 +01:00
Michał Jusięga
0c1e4edc8b
allow translation-contracts:^3
2021-12-22 17:41:26 +01:00
Fabien Potencier
33ed3b7e33
Merge branch '2.x' into 3.x
...
* 2.x:
Upgrade to version 4.4 lts at least
2021-11-13 17:20:21 +01:00
noniagriconomie
315e16f5df
Upgrade to version 4.4 lts at least
2021-11-08 13:29:10 +01:00
Nicolas Grekas
1e53d27a37
Merge branch '2.x' into 3.x
...
* 2.x:
Allow Symfony 6
2021-05-20 16:28:34 +02:00
Nicolas Grekas
ea5de7e626
Allow Symfony 6
2021-05-20 16:22:31 +02:00
Fabien Potencier
13e360972a
Merge branch '2.x' into 3.x
...
* 2.x:
Fix CS
Fix CS
Migrate to the new PHP CS Fixer config file
Fixing links
2021-05-12 09:45:40 +02:00
Fabien Potencier
2dd1d909b9
Fix CS
2021-05-12 09:37:17 +02:00
Fabien Potencier
a8d40e3a4a
Merge branch '2.x' into 3.x
...
* 2.x:
Add slug filter (follow-up to PR #3386 )
2021-01-29 15:39:43 +01:00
Émile Perron
0fd67941be
Add slug filter (follow-up to PR #3386 )
2021-01-29 15:39:04 +01:00
Fabien Potencier
cb88e0a68c
Merge branch '2.x' into 3.x
...
* 2.x:
Move things around
2021-01-01 15:58:18 +01:00
Fabien Potencier
1868918724
Move things around
2021-01-01 15:53:48 +01:00
Fabien Potencier
b0afeb512e
Merge branch '2.x' into 3.x
...
* 2.x:
Move Extra Bundle config from XML to PHP
bump license year
2021-01-01 15:33:39 +01:00
abdounikarim
bed8f31b96
bump license year
2021-01-01 10:21:03 +01:00
Fabien Potencier
351a97ed15
Fix Composer version
2021-01-01 10:05:00 +01:00
Fabien Potencier
dae3868f04
Fix Composer version
2021-01-01 10:02:52 +01:00
Nicolas Grekas
4e0008cd82
Try running all tests on nightly
2020-05-21 11:54:27 +02:00
Fabien Potencier
74f3ffe4b6
Fix extra package deps
2020-05-21 08:01:43 +02:00
Fabien Potencier
9270d3e0e0
Allow dev versions
2020-05-19 15:17:30 +02:00
Fabien Potencier
2d58a54b4a
Allow PHP 8 for extra packages
2020-05-19 15:12:25 +02:00
Massimiliano Arione
12028697f1
allow null string in StringExtension
...
Fix #3250
2020-02-11 16:24:50 +01:00
Guite
c3b4b8ee53
lower php requirement
2020-01-02 13:43:40 +01:00
Fabien Potencier
6aae22ecde
Bump license year
2020-01-01 18:10:47 +01:00
Fabien Potencier
966fa45126
Fix constraints
2019-12-27 08:33:44 +01:00
Fabien Potencier
5750a13b40
Add missing .gitattributes for string-extra
2019-10-17 09:28:42 +02:00