ZF2 - How to enable Twig's Debug / Dump function

debugging, twig, zend-framework2

Solution

According to Twig documentation, you need to activate Twig_Extension_Debug extension to have this function available.

In ZfcTwig module just add this extension to config (doc):

'zfctwig' => [
    'extensions' => [
        'Twig_Extension_Debug',
    ],
],

Problem

Does anyone one know where to enable Twig's dump function in ZF2? I've looked all over Google and I can't find anything that really relates to this issue. I would have though the ZFC-Twig module would have it right in their config but it doesn't appear to be. Thanks

Original source