Skip to content

Instantly share code, notes, and snippets.

@jl91
Created February 2, 2016 21:45

Revisions

  1. jl91 created this gist Feb 2, 2016.
    21 changes: 21 additions & 0 deletions Whoops.php
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,21 @@
    <?php

    return [
    'dependencies' => [
    'invokables' => [
    'Zend\Expressive\Whoops' => Whoops\Run::class,
    'Zend\Expressive\WhoopsPageHandler' => Whoops\Handler\PrettyPageHandler::class,
    ],
    'factories' => [
    'Zend\Expressive\FinalHandler' => Zend\Expressive\Container\WhoopsErrorHandlerFactory::class,
    ],
    ],

    'whoops' => [
    'json_exceptions' => [
    'display' => true,
    'show_trace' => true,
    'ajax_only' => false,
    ],
    ],
    ];