- Add module to your application
composer require "riktamtech/zf2-error-handler:dev-master"
- Enable it in your application.config.php file.
<?php
return array(
'modules' => array(
// ...
'Zf2ErrorHandler',
),
// ...
);
- Copy config/zf2-error-handler.local.php.dist file to your application config/autoload folder. And remove .dist from filename.