for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of the Madapaja.TwigModule package.
*
* @license http://opensource.org/licenses/MIT MIT
*/
namespace Madapaja\TwigModule;
use BEAR\Resource\RenderInterface;
use BEAR\Sunday\Extension\Error\ErrorInterface;
use Madapaja\TwigModule\Annotation\TwigErrorPath;
use Ray\Di\AbstractModule;
class TwigErrorPageModule extends AbstractModule
{
* {@inheritdoc}
protected function configure()
$this->bind(RenderInterface::class)->annotatedWith('error_page')->to(ErrorPagerRenderer::class);
$this->bind(ErrorInterface::class)->to(TwigErrorHandler::class);
$this->bind()->annotatedWith(TwigErrorPath::class)->toInstance('/error/error.html.twig');
$this->bind(TwigErrorPage::class);
}