mirror of
https://github.com/symfony/recipes-contrib.git
synced 2026-09-19 11:06:41 +03:00
add ravenflux extensions
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
services:
|
||||
ravenflux.twig.extension.env_in_twig:
|
||||
class: RavenFlux\Twig\EnvInTwigExtension
|
||||
tags:
|
||||
-
|
||||
name: twig.extension
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%/"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
services:
|
||||
ravenflux.twig.extension.php_functions:
|
||||
class: RavenFlux\Twig\PhpFunctionsExtension
|
||||
arguments:
|
||||
- #first argument are functions
|
||||
- 'count'
|
||||
- #second argument are filters
|
||||
- 'nl2br'
|
||||
tags:
|
||||
-
|
||||
name: twig.extension
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%/"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
services:
|
||||
ravenflux.twig.extension.sort_functions:
|
||||
class: RavenFlux\Twig\SortExtension
|
||||
tags:
|
||||
-
|
||||
name: twig.extension
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%/"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user