sergiors / friendly-exception-service-provider
Friendly Exception for Silex
dev-master
2017-04-07 13:46 UTC
Requires
- php: >=5.5
- silex/silex: ^2
- twig/twig: ^1.27
Requires (Dev)
- pdepend/pdepend: ~2.0
- phing/phing: ~2.10
- phploc/phploc: ~2.1
- phpmd/phpmd: ~2.2
- phpunit/phpunit: ~4.8
- sebastian/phpcpd: ~2.0
- squizlabs/php_codesniffer: ~2.1
This package is not auto-updated.
Last update: 2024-11-09 21:02:54 UTC
README
Install
composer require sergiors/friendly-exception-service-provider "dev-master"
use Silex\Provider\TwigServiceProvider; use Sergiors\Silex\Provider\FriendlyExceptionServiceProvider; $app->register(new TwigServiceProvider()); $app->register(new FriendlyExceptionServiceProvider(), [ 'friendly_exception.notfound' => '404_notfound.html.twig', 'friendly_exception.exception' => '5xx.html.twig', ]);
License
MIT