Adding my own Twig filters/extensions

Hello.

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

$app->add(TwigMiddleware::createFromContainer($app));

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.

Th.