add ravenflux extensions

This commit is contained in:
k0d3r1s
2019-08-04 02:47:42 +03:00
parent ebfe19b60d
commit df24e3fe0a
6 changed files with 38 additions and 0 deletions
@@ -0,0 +1,6 @@
services:
ravenflux.twig.extension.env_in_twig:
class: RavenFlux\Twig\EnvInTwigExtension
tags:
-
name: twig.extension
+5
View File
@@ -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%/"
}
}