src/View/Twig.php
protected function getExtensions()
    {
        if (file_exists(realpath(__DIR__.'/../../../../../config/twig.php'))) {
            $this->config = require realpath(__DIR__.'/../../../../../config/twig.php');
        } else {
            $this->config = require realpath(__DIR__.'/../../config/twig.php');
        }

        return isset($this->config['extensions']) ? $this->config['extensions'] : [];
    }
protected function getExtensions()
    {
        if (file_exists(realpath(__DIR__.'/../../../../../config/twig.php'))) {
            $this->config = require realpath(__DIR__.'/../../../../../config/twig.php');
        } else {
            $this->config = require realpath(__DIR__.'/../../config/twig.php');
        }

        return isset($this->config['extensions']) ? $this->config['extensions'] : [];
    }
protected function getExtensions ( ) { if ( file_exists ( realpath ( __DIR__ . '/../../../../../config/twig.php' ) ) ) { $ this -> config = require realpath ( __DIR__ . '/../../../../../config/twig.php' ) ; } else { $ this -> config = require realpath ( __DIR__ . '/../../config/twig.php' ) ; } return isset ( $ this -> config [ 'extensions' ] ) ? $ this -> config [ 'extensions' ] : [ ] ; }
Get extensions defined by application developer.

@return array
Get extensions defined by application developer .