Skip to content

Commit 7e38523

Browse files
authored
Readme: mention twig (#195)
1 parent 05e7124 commit 7e38523

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,16 @@ includes:
5656
- annotations like `@test`, `@before`, `@afterClass` etc
5757
- attributes like `#[Test]`, `#[Before]`, `#[AfterClass]` etc
5858

59-
6059
#### PHPStan:
6160
- constructor calls for DIC services (rules, extensions, ...)
6261

6362
#### Nette:
6463
- `handleXxx`, `renderXxx`, `actionXxx`, `injectXxx`, `createComponentXxx`
6564
- `SmartObject` magic calls for `@property` annotations
6665

66+
#### Twig:
67+
- `#[AsTwigFilter]`, `#[AsTwigFunction]`, `#[AsTwigTest]`
68+
- `new TwigFilter(..., callback)`, `new TwigFunction(..., callback)`, `new TwigTest(..., callback)`
6769

6870
All those libraries are autoenabled when found within your composer dependencies.
6971
If you want to force enable/disable some of them, you can:

0 commit comments

Comments
 (0)