-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathmodule.config.visibility-example.php
36 lines (31 loc) · 1.12 KB
/
module.config.visibility-example.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php
namespace WhoopsErrorHandler;
use Application\Service\VisibilityService;
return [
'whoops' => [
'editor' => 'phpstorm',
'show_trace' => [
'ajax_display' => true,
'cli_display' => true,
],
'template_render' => 'laminas_whoops/simple_error',
// Specify the class name
'visibility_service_name' => VisibilityService::class,
],
'service_manager' => [
'factories' => [
Service\WhoopsService::class => Factory\Factory::class,
Handler\PageHandler::class => Factory\Factory::class,
Handler\ConsoleHandler::class => Factory\Factory::class,
Handler\AjaxHandler::class => Factory\Factory::class,
// register visibility class
VisibilityService::class => Factory\Factory::class,
],
],
'view_manager' => [
'template_map' => [
'laminas_whoops/simple_error' => __DIR__ . '/../view/render.phtml',
'laminas_whoops/twig_error' => __DIR__ . '/../view/twig/render.html.twig',
],
],
];