( ! ) Warning: Undefined variable $namespace in /home/homes/alexandrelus/sites/live39/project-final/saint-leman/vendor/symfony/maker-bundle/src/Resources/skeleton/twig/Extension.tpl.php on line 3 |
Call Stack |
# | Time | Memory | Function | Location |
1 | 0.0063 | 359568 | {main}( ) | .../Extension.tpl.php:0 |
;
use Twig\Extension\AbstractExtension;
use Twig\TwigFilter;
use Twig\TwigFunction;
class
( ! ) Warning: Undefined variable $class_name in /home/homes/alexandrelus/sites/live39/project-final/saint-leman/vendor/symfony/maker-bundle/src/Resources/skeleton/twig/Extension.tpl.php on line 9 |
Call Stack |
# | Time | Memory | Function | Location |
1 | 0.0063 | 359568 | {main}( ) | .../Extension.tpl.php:0 |
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/2.x/advanced.html#automatic-escaping
new TwigFilter('filter_name', [$this, 'doSomething']),
];
}
public function getFunctions(): array
{
return [
new TwigFunction('function_name', [$this, 'doSomething']),
];
}
public function doSomething($value)
{
// ...
}
}