Twig

Create custom TwigExtension

TwigExtension class allows to do almost everything within Twig templates, but what if we need to go far away, and what we really need isn't available out-of-the-box, then we could create our own TwigExtension, we could achieve it by follow Symfony documentation.
Subscribe to Twig