Nicolas Grekas
bd939c8c3a
Fix wrapping the Twig cache pool in a second tag aware adapter
...
The ".twig.cache.inner" pool is a child of "cache.app". When the application
configures a natively tag aware adapter for it (redis, valkey, pdo or mongodb),
the child pool is already tag aware and decorating it with a TagAwareAdapter
turns every read into a miss.
Alias "twig.cache" to the pool in that case, the way Symfony aliases
"cache.app.taggable" to "cache.app" instead of decorating it. The pool keeps
its own namespace, so it does not start sharing the application pool's one, and
the decorator stays in place for the plain adapters that need it.
2026-09-11 10:59:50 +02:00
Fabien Potencier
6bbbb49c3e
Restore void return type compatibility for extension points
2026-08-27 07:27:31 +02:00
Fabien Potencier
4212ac1303
Test extra extension catalog against local sources
2026-08-23 09:13:10 +02:00
Simon André
dba79330db
Register the missing extra callables in MissingExtensionSuggestor
2026-08-23 09:12:58 +02:00
Fabien Potencier
9c6d76b61c
Add void return type hint even in tests
2026-07-12 13:43:08 +02:00
Fabien Potencier
54420847f0
Install a custom exception handler before bootstrapping KernelTestCase
2026-05-24 10:42:35 +02:00
Fabien Potencier
861215c507
Fix CS
2026-02-07 09:07:38 +01:00
Fabien Potencier
6e38bec2ee
minor #4718 Add .gitignore & .gitattributes to all .gitattributes (jmsche)
...
This PR was merged into the 3.x branch.
Discussion
----------
Add .gitignore & .gitattributes to all .gitattributes
Commits
-------
ff327e4163 Add .gitignore & .gitattributes to all .gitattributes
2025-12-18 21:46:15 +01:00
Tac Tacelosky
c4dcd0bb8c
use getShareDir as an indicator of Symfony version
2025-12-05 09:51:53 +01:00
jmsche
ff327e4163
Add .gitignore & .gitattributes to all .gitattributes
2025-12-02 15:45:16 +01:00
Javier Eguiluz
9a8a1dc1dd
Allow Symfony 8 packages in Twig extra packages
2025-11-02 12:00:49 +01:00
Fabien Potencier
8f970764e6
Bump minimum Commonmark requirement
2025-09-15 07:57:37 +02:00
Nicolas Grekas
fec73458dc
minor #4664 CS fixes (nicolas-grekas)
...
This PR was merged into the 3.x branch.
Discussion
----------
CS fixes
Commits
-------
85a4817128 CS fixes
2025-07-29 10:10:06 +02:00
Nicolas Grekas
85a4817128
CS fixes
2025-07-29 10:07:07 +02:00
Nicolas Grekas
b6a105c952
Fix compatibility with Symfony 8
2025-07-10 12:07:05 +02:00
Doeke Norg
a8aadc3e99
Update configuration keys + allow extra keys for extensions
2025-05-23 09:29:36 +02:00
Alexandre Daubois
9c6b95f2a6
Make in_array() calls strict
2025-02-19 15:29:33 +01:00
Fabien Potencier
151aa4ecda
Fix CS
2025-02-14 12:57:03 +01:00
Fabien Potencier
40a2d5b57f
Add missing CHANGELOG
2025-02-08 10:47:15 +01:00
Fabien Potencier
3cdf26fe76
feature #3737 Added configuration for commonmark use in twig-extra-bundle. (doekenorg)
...
This PR was merged into the 3.x branch.
Discussion
----------
Added configuration for commonmark use in twig-extra-bundle.
Following this tweet: https://twitter.com/ramsey/status/1561894460560138241 , this PR adds the configuration options for `commonmark` to the `twig-extra-bundle`.
The configuration is added to the `LeagueCommonMarkConverterFactory` and in turn injected in the `CommonMarkConverter`. This way a user can provide the configuration for usage inside twig.
I'm not sure if adding the configuration inside the extension is the way to go.
Hope this helps out at least `@ramsey` :-)
Added `ignoreExtraKeys` to be somewhat future proof in case extra configuration is added later on, and also to be able to provide de configuration for extensions.
Commits
-------
6f20629622 Added configuration for commonmark use in twig-extra-bundle.
2025-02-08 10:44:24 +01:00
Fabien Potencier
dc6356268b
Bump min PHP version to 8.1
2025-01-31 21:45:36 +01:00
Fabien Potencier
a23cd9feeb
Fix CS
2024-09-26 21:22:23 +02:00
Fabien Potencier
a240eff47e
Simplify code
2024-09-10 08:27:46 +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
da4592793b
minor #4109 Update PHPUnit config (fabpot)
...
This PR was merged into the 3.x branch.
Discussion
----------
Update PHPUnit config
Commits
-------
b78dee86 Update PHPUnit config
2024-06-21 08:25:01 +02:00
Fabien Potencier
b78dee8682
Update PHPUnit config
2024-06-21 08:22:31 +02:00
Fabien Potencier
b63bde3063
Optimize sprintf() calls for PHP 8.4
2024-06-21 08:16:55 +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
Christian Flothmann
b61a422493
change extended DI extension class
2024-04-18 11:24:21 +02:00
Christian Flothmann
d9d7e136c1
fix TwigExtraBundle tests with Symfony 6.0/6.1
2024-02-07 09:24:24 +01:00
Fabien Potencier
14d3803647
Add a deprecation when a Node uses echo/print
2024-01-25 13:09:58 +01:00
Fabien Potencier
210e2d2b9e
Fix tests
2024-01-25 13:09:58 +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
Fabien Potencier
5193653ecb
Fix CS
2023-10-08 09:05:22 +02: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
2e0286630e
Merge branch '2.x' into 3.x
...
* 2.x:
Fix BC break
Update Drupal version in tests
Fix code
Bump PHP version used by Drupal tests
add return type for Symfony 7 compatibility
2023-07-29 13:21:17 +02:00
Fabien Potencier
244d5de454
Fix BC break
2023-07-29 13:21:11 +02:00
Fabien Potencier
64543c3c49
Fix code
2023-07-28 12:18:03 +02:00
Christian Flothmann
fac08ec7d3
add return type for Symfony 7 compatibility
2023-07-27 11:30:49 +02:00
Phil E. Taylor
72d6f20556
suppress native return type deprecation msg
2023-05-06 12:11:46 +01:00
Phil E. Taylor
b7a8ebbe6f
return annotation to suppress deprecation warning
2023-04-14 12:03:02 +01: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