Fabien Potencier
cf971e1a59
Remove lazy macro import resolution
2026-08-27 12:17:08 +02:00
Fabien Potencier
b53e100444
Nested macro imports
2026-08-03 10:30:32 +02:00
Fabien Potencier
5462817da0
Add a needs_is_sandboxed option for filters, functions, and tests
2026-05-16 18:52:17 +01:00
Fabien Potencier
dfeb162464
Fix doc notes
2026-01-21 08:36:53 +01:00
Fabien Potencier
85ccfb10c2
Fix doc notes
2026-01-21 08:34:47 +01:00
Fabien Potencier
ae51f93f70
Fix documentation for getOperators()
2026-01-17 10:19:56 +01:00
Jérôme Tamarelle
5886907b28
Create attributes AsTwigFilter, AsTwigFunction and AsTwigTest to ease extension development
2025-03-24 22:34:21 +01:00
Fabien Potencier
96dade342f
Improve docs on creating new tags
2025-02-27 10:07:32 +01:00
Christian Flothmann
4c818122f3
fix typo
2025-02-18 15:14:50 +01:00
Fabien Potencier
df877a1d53
Introduce operator classes to describe operators provided by extensions instead of arrays
2025-02-14 08:38:53 +01:00
Jérôme Tamarelle
d8fe3bd1ec
Add LastModifiedExtensionInterface and implementation in AbstractExtension to track modification of runtime classes
2025-01-02 14:50:18 +01:00
Fabien Potencier
08f28fd06c
Remove most usage of foo/bar/baz in the docs
2024-09-12 21:40:08 +02:00
Rylix
c7d9a50727
Fix typo
2024-09-11 14:41:00 +02:00
Fabien Potencier
34ae0311d9
Improve the way one can deprecate a Twig callable
2024-09-09 21:14:40 +02:00
Fabien Potencier
ef58791fa4
Add the possibility to reset globals
2024-09-07 16:47:00 +02:00
Fabien Potencier
5fca700cbd
Deprecate the fact that the extends and use tags are always allowed in a sandboxed template
2024-08-28 13:40:53 +02:00
Fabien Potencier
0ce79df5c4
Use trigger_deprecation() instead of trigger_error() for deprecations
2024-08-08 14:28:28 +02:00
Simon André
10deb7328c
[Doc] Fix do tag label in link
2024-07-10 00:23:00 +02:00
Simon André
4a8e8ee16b
[Doc] Modernize Class name in examples
...
From "Project_Twig_Extension" to "CustomExtension"
Just a suggestion, feel free to close if you want to keep it like this :)
I found those namings only in "advanced"
2024-06-30 10:31:01 +02:00
Fabien Potencier
c63f695e8a
Add needs_charset option for filters and functions
2024-05-01 13:12:48 +02:00
Fabien Potencier
31629a69f7
Merge branch '2.x' into 3.x
...
* 2.x:
Fix a typo in api.rst
Fix a typo advanced.rst
2021-11-29 09:51:28 +01:00
Dmitriy Fishman
cd24fb57bc
Fix a typo advanced.rst
2021-11-28 13:30:08 +01:00
Maarten de Keizer
904ed22daa
Add return type for getGlobals() to documentation. The return type is
...
defied in the GlobalsInterface
2020-11-06 10:59:01 +01:00
Oskar Stark
8ac8cb719a
Enhancement: Introduce DOCtor-RST config + GithubAction
2020-11-06 08:10:54 +01:00
Fabien Potencier
22537dd1c4
Merge branch '2.x' into 3.x
...
* 2.x:
Fix small typo
Fix: Typo
Enhancement: Use GithubActions instead of Travis for tests
Fix: DOCtor-RST build
Enhancement: Use no_explicit_use_of_code_block_php rule
Fix: Highlighting
Enhancement: Introduce DOCtor-RST config + Sphinx build + GithubActions
Enhancement: Use GithubActions instead of Travis for tests
Fix `odd` not working for negative numbers
Bump version to 2.14.2-DEV
Prepare the 2.14.1 release
Update CHANGELOG
Bump version to 1.44.2-DEV
Prepare the 1.44.1 release
2020-11-05 18:38:00 +01:00
Oskar Stark
5ceda707ed
Fix: DOCtor-RST build
2020-11-05 13:57:55 +01:00
Fabien Potencier
c2a264a91d
Merge branch '1.x' into 2.x
...
* 1.x:
Enhancement: Introduce DOCtor-RST config + Sphinx build + GithubActions
Enhancement: Use GithubActions instead of Travis for tests
Fix `odd` not working for negative numbers
Bump version to 1.44.2-DEV
Prepare the 1.44.1 release
2020-11-05 13:31:01 +01:00
Fabien Potencier
960e3e1fa3
minor #3430 Enhancement: Introduce DOCtor-RST config + Sphinx build + GithubActions (OskarStark)
...
This PR was squashed before being merged into the 1.x branch.
Discussion
----------
Enhancement: Introduce DOCtor-RST config + Sphinx build + GithubActions
Commits
-------
c9328ad6 Enhancement: Introduce DOCtor-RST config + Sphinx build + GithubActions
2020-11-05 13:09:12 +01:00
Oskar Stark
c9328ad613
Enhancement: Introduce DOCtor-RST config + Sphinx build + GithubActions
2020-11-05 13:09:07 +01:00
Harry Bournis
53a3ccd2d2
Fix odd not working for negative numbers
2020-11-05 11:55:45 +01:00
Fabien Potencier
a6f64395b3
Merge branch '2.x' into 3.x
...
* 2.x:
fix node class namespace
2020-03-24 13:35:36 +01:00
Fabien Potencier
27af7d9cd1
Merge branch '1.x' into 2.x
...
* 1.x:
fix node class namespace
2020-03-24 13:35:30 +01:00
Christian Flothmann
06ff4bdf9a
fix node class namespace
2020-03-24 12:12:57 +01:00
Fabien Potencier
73f5ef2590
Fix CHANGELOG
2020-02-14 16:18:25 +01:00
Fabien Potencier
10e5015411
Merge branch '1.x' into 2.x
...
* 1.x:
Fix format of the CHANGELOG
Update advanced.rst
2020-02-14 16:15:19 +01:00
Abdouni Abdelkarim
e030bf6e38
Update advanced.rst
...
Hello,
I just updated the class name 😉
2020-02-13 13:50:04 +01:00
Fabien Potencier
44638e93a8
Merge branch '2.x' into 3.x
...
* 2.x:
Syntax error in doc
2020-01-13 09:20:31 +01:00
Fabien Potencier
e52bcf67cf
Merge branch '1.x' into 2.x
...
* 1.x:
Syntax error in doc
2020-01-13 09:20:25 +01:00
JakeFr
fbfac78fbd
Syntax error in doc
...
This code sample in advanced.rst is not highlighted in php because the second semicolon is missing
2020-01-13 08:58:15 +01:00
Fabien Potencier
3c5162ed7e
Merge branch '2.x' into 3.x
...
* 2.x:
Remove mention of the obsolete twig-extensions repository
Remove usage of the old Autoloader class in the docs
2019-11-18 18:29:51 +01:00
Fabien Potencier
aecce3d92e
Merge branch '1.x' into 2.x
...
* 1.x:
Remove mention of the obsolete twig-extensions repository
Remove usage of the old Autoloader class in the docs
2019-11-18 18:29:44 +01:00
Fabien Potencier
7f48a181cd
Remove mention of the obsolete twig-extensions repository
2019-11-18 18:27:43 +01:00
Fabien Potencier
9ab104be86
Merge branch '2.x' into 3.x
...
* 2.x:
moved test under tests/
moved tests under tests/
2019-06-30 14:55:01 +02:00
Fabien Potencier
1e3bb75010
moved test under tests/
2019-06-30 14:51:54 +02:00
Fabien Potencier
22a1317249
moved tests under tests/
2019-06-30 14:48:27 +02:00
Fabien Potencier
1fff12a592
Merge branch '2.x' into 3.x
...
* 2.x:
added Blackfire as a sponsor
tweaked an example in the docs
Use dir constant for fixtures
2019-06-28 17:39:12 +02:00
Fabien Potencier
c9b21be6b9
Merge branch '1.x' into 2.x
...
* 1.x:
tweaked an example in the docs
Use dir constant for fixtures
2019-06-27 07:33:08 +02:00
Claudio Zizza
ea7c66447d
Use dir constant for fixtures
2019-06-27 07:29:52 +02:00
Fabien Potencier
abea992e76
Merge branch '2.x' into 3.x
...
* 2.x:
[Doc] Minor fixes and removed belittling words
fixed CHANGELOG
bumped version to 2.11.4-DEV
prepared the 2.11.3 release
bumped version to 1.42.3-DEV
prepared the 1.42.2 release
2019-06-20 14:04:29 +02:00
Fabien Potencier
fb5a1f43e6
Merge branch '1.x' into 2.x
...
* 1.x:
[Doc] Minor fixes and removed belittling words
bumped version to 1.42.3-DEV
prepared the 1.42.2 release
2019-06-20 13:56:08 +02:00