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'] : [];
    }