Adding my own Twig filters/extensions


I’ve added Twig to my Slim 3 project with this line:


Then I created an extension for Twig. But I do not figure out how to add/register my custom extension to Twig now. Guest it is really simple…

Any help would be welcome.