initial commit

This commit is contained in:
boris
2025-09-30 09:24:25 +01:00
committed by boris
parent a783a12c97
commit c7770ea03b
4695 changed files with 525784 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
<?= "<?php\n" ?>
namespace <?= $namespace; ?>;
<?= $use_statements ?>
class <?= $class_name ?> extends AbstractExtension
{
public function getFilters(): array
{
return [
// If your filter generates SAFE HTML, you should add a third
// parameter: ['is_safe' => ['html']]
// Reference: https://twig.symfony.com/doc/3.x/advanced.html#automatic-escaping
new TwigFilter('filter_name', [<?= $runtime_class_name ?>::class, 'doSomething']),
];
}
public function getFunctions(): array
{
return [
new TwigFunction('function_name', [<?= $runtime_class_name ?>::class, 'doSomething']),
];
}
}