riktamtech/zf2-error-handler

使用 Whoops 在 ZF2 框架中处理错误

dev-master 2016-06-02 08:16 UTC

This package is not auto-updated.

Last update: 2024-09-28 18:58:35 UTC


README

安装

  1. 将模块添加到您的应用程序中
composer require "riktamtech/zf2-error-handler:dev-master"
  1. 在您的 application.config.php 文件中启用它。
<?php
return array(
    'modules' => array(
        // ...
        'Zf2ErrorHandler',
    ),
    // ...
);
  1. 将 config/zf2-error-handler.local.php.dist 文件复制到您的应用程序 config/autoload 文件夹。并从文件名中删除 .dist。