src/Template/RendererIntegration.php
public function define(ContainerInterface $container, Configuration $config)
    {
        $renderer = new Renderer($config->get('app.views', ''));

        if (class_exists('Twig_Environment') === true) {
            $loader = new \Twig_Loader_Filesystem($config->get('app.views', ''));

            $renderer = new TwigRenderer(new \Twig_Environment($loader));
        }

        $container->set('Rougin\Slytherin\Template\RendererInterface', $renderer);

        return $container;
    }
public function define(ContainerInterface $container, Configuration $config)
    {
        $renderer = new Renderer($config->get('app.views', ''));

        if (class_exists('Twig_Environment') === true) {
            $loader = new \Twig_Loader_Filesystem($config->get('app.views', ''));

            $renderer = new TwigRenderer(new \Twig_Environment($loader));
        }

        $container->set('Rougin\Slytherin\Template\RendererInterface', $renderer);

        return $container;
    }
Defines the specified integration.

@param  \Rougin\Slytherin\Container\ContainerInterface $container
@param  \Rougin\Slytherin\Integration\Configuration    $config
@return \Rougin\Slytherin\Container\ContainerInterface