You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can also have a look at the extension definition and create your own extension class to only include some of the features, if you do not like all of them.
24
24
25
+
### Symfony integration
26
+
27
+
If you use `autoconfigure` (which is the default) you just need to load the PhpSyntaxExtension class in `services.yaml` in the `config` directory of your project (the first four lines should already be there, just add the line with the PhpSyntaxExtension class at the end of the file):
28
+
29
+
```yaml
30
+
services:
31
+
_defaults:
32
+
autowire: true
33
+
autoconfigure: true
34
+
35
+
# Just add the following line, Symfony will register
36
+
# the extension in Twig for you if Twig is installed
37
+
Squirrel\TwigPhpSyntax\PhpSyntaxExtension: ~
38
+
```
39
+
40
+
If you do not use `autoconfigure`, you can add the twig extension tag to the service definition:
0 commit comments