1 |
www |
1 |
<?php
|
|
|
2 |
|
|
|
3 |
/**
|
|
|
4 |
* @see https://github.com/laminas/laminas-mvc-skeleton for the canonical source repository
|
|
|
5 |
* @copyright https://github.com/laminas/laminas-mvc-skeleton/blob/master/COPYRIGHT.md
|
|
|
6 |
* @license https://github.com/laminas/laminas-mvc-skeleton/blob/master/LICENSE.md New BSD License
|
|
|
7 |
*/
|
|
|
8 |
|
|
|
9 |
/**
|
|
|
10 |
* This is configuration for the Laminas\DeveloperTools development toolbar.
|
|
|
11 |
*
|
|
|
12 |
* It will be enabled when you enable development mode.
|
|
|
13 |
*/
|
|
|
14 |
return [
|
|
|
15 |
'laminas-developer-tools' => [
|
|
|
16 |
/**
|
|
|
17 |
* General Profiler settings
|
|
|
18 |
*/
|
|
|
19 |
'profiler' => [
|
|
|
20 |
/**
|
|
|
21 |
* Enables or disables the profiler.
|
|
|
22 |
*
|
|
|
23 |
* Expects: bool
|
|
|
24 |
* Default: true
|
|
|
25 |
*/
|
|
|
26 |
'enabled' => true,
|
|
|
27 |
|
|
|
28 |
/**
|
|
|
29 |
* Enables or disables the strict mode. If the strict mode is enabled, any error will throw an exception,
|
|
|
30 |
* otherwise all errors will be added to the report (and shown in the toolbar).
|
|
|
31 |
*
|
|
|
32 |
* Expects: bool
|
|
|
33 |
* Default: true
|
|
|
34 |
*/
|
|
|
35 |
'strict' => true,
|
|
|
36 |
|
|
|
37 |
/**
|
|
|
38 |
* If enabled, the profiler tries to flush the content before the it starts collecting data. This option
|
|
|
39 |
* will be ignored if the Toolbar is enabled.
|
|
|
40 |
*
|
|
|
41 |
* Note: The flush listener listens to the MvcEvent::EVENT_FINISH event with a priority of -9400. You have
|
|
|
42 |
* to disable this function if you wish to modify the output with a lower priority.
|
|
|
43 |
*
|
|
|
44 |
* Expects: bool
|
|
|
45 |
* Default: false
|
|
|
46 |
*/
|
|
|
47 |
'flush_early' => false,
|
|
|
48 |
|
|
|
49 |
/**
|
|
|
50 |
* The cache directory is used in the version check and for every storage type that writes to the disk.
|
|
|
51 |
* Note: The default value assumes that the current working directory is the application root.
|
|
|
52 |
*
|
|
|
53 |
* Expects: string
|
|
|
54 |
* Default: 'data/cache'
|
|
|
55 |
*/
|
|
|
56 |
'cache_dir' => 'data/cache',
|
|
|
57 |
|
|
|
58 |
/**
|
|
|
59 |
* If a matches is defined, the profiler will be disabled if the request does not match the pattern.
|
|
|
60 |
*
|
|
|
61 |
* Example: 'matcher' => ['ip' => '127.0.0.1']
|
|
|
62 |
* OR
|
|
|
63 |
* 'matcher' => ['url' => ['path' => '/admin']]
|
|
|
64 |
* Note: The matcher is not implemented yet!
|
|
|
65 |
*/
|
|
|
66 |
'matcher' => [],
|
|
|
67 |
|
|
|
68 |
/**
|
|
|
69 |
* Contains a list with all collector the profiler should run. Laminas\DeveloperTools ships with
|
|
|
70 |
* 'db' (Laminas\Db), 'time', 'event', 'memory', 'exception', 'request' and 'mail' (Laminas\Mail).
|
|
|
71 |
* If you wish to disable a default collector, simply set the value to null or false.
|
|
|
72 |
*
|
|
|
73 |
* Example: 'collectors' => ['db' => null]
|
|
|
74 |
* Expects: array
|
|
|
75 |
*/
|
|
|
76 |
'collectors' => [],
|
|
|
77 |
],
|
|
|
78 |
'events' => [
|
|
|
79 |
/**
|
|
|
80 |
* Set to true to enable event-level logging for collectors that will support it. This enables a wildcard
|
|
|
81 |
* listener onto the shared event manager that will allow profiling of user-defined events as well as the
|
|
|
82 |
* built-in ZF events.
|
|
|
83 |
*
|
|
|
84 |
* Expects: bool
|
|
|
85 |
* Default: false
|
|
|
86 |
*/
|
|
|
87 |
'enabled' => true,
|
|
|
88 |
|
|
|
89 |
/**
|
|
|
90 |
* Contains a list with all event-level collectors that should run. Laminas\DeveloperTools ships with 'time'
|
|
|
91 |
* and 'memory'. If you wish to disable a default collector, simply set the value to null or false.
|
|
|
92 |
*
|
|
|
93 |
* Example: 'collectors' => ['memory' => null]
|
|
|
94 |
* Expects: array
|
|
|
95 |
*/
|
|
|
96 |
'collectors' => [],
|
|
|
97 |
|
|
|
98 |
/**
|
|
|
99 |
* Contains event identifiers used with the event listener. Laminas\DeveloperTools defaults to listen to all
|
|
|
100 |
* events. If you wish to disable the default all-inclusive identifier, simply set the value to null or
|
|
|
101 |
* false.
|
|
|
102 |
*
|
|
|
103 |
* Example: 'identifiers' => ['all' => null, 'dispatchable' => 'Laminas\Stdlib\DispatchableInterface']
|
|
|
104 |
* Expects: array
|
|
|
105 |
*/
|
|
|
106 |
'identifiers' => [],
|
|
|
107 |
],
|
|
|
108 |
/**
|
|
|
109 |
* General Toolbar settings
|
|
|
110 |
*/
|
|
|
111 |
'toolbar' => [
|
|
|
112 |
/**
|
|
|
113 |
* Enables or disables the Toolbar.
|
|
|
114 |
*
|
|
|
115 |
* Expects: bool
|
|
|
116 |
* Default: false
|
|
|
117 |
*/
|
|
|
118 |
'enabled' => true,
|
|
|
119 |
|
|
|
120 |
/**
|
|
|
121 |
* If enabled, every empty collector will be hidden.
|
|
|
122 |
*
|
|
|
123 |
* Expects: bool
|
|
|
124 |
* Default: false
|
|
|
125 |
*/
|
|
|
126 |
'auto_hide' => false,
|
|
|
127 |
|
|
|
128 |
/**
|
|
|
129 |
* The Toolbar position.
|
|
|
130 |
*
|
|
|
131 |
* Expects: string ('bottom' or 'top')
|
|
|
132 |
* Default: bottom
|
|
|
133 |
*/
|
|
|
134 |
'position' => 'bottom',
|
|
|
135 |
|
|
|
136 |
/**
|
|
|
137 |
* If enabled, the Toolbar will check if your current Zend Framework version is up-to-date.
|
|
|
138 |
* Note: The check will only occur once every hour.
|
|
|
139 |
*
|
|
|
140 |
* Expects: bool
|
|
|
141 |
* Default: false
|
|
|
142 |
*/
|
|
|
143 |
'version_check' => false,
|
|
|
144 |
|
|
|
145 |
/**
|
|
|
146 |
* Contains a list with all collector toolbar templates. The name of the array key must be same as the name
|
|
|
147 |
* of the collector.
|
|
|
148 |
*
|
|
|
149 |
* Example: 'profiler' => [
|
|
|
150 |
* 'collectors' => [
|
|
|
151 |
* // My_Collector_Example::getName() -> mycollector
|
|
|
152 |
* 'MyCollector' => 'My_Collector_Example',
|
|
|
153 |
* ],
|
|
|
154 |
* ],
|
|
|
155 |
* 'toolbar' => [
|
|
|
156 |
* 'entries' => [
|
|
|
157 |
* 'mycollector' => 'example/toolbar/my-collector',
|
|
|
158 |
* ],
|
|
|
159 |
* ],
|
|
|
160 |
* Expects: array
|
|
|
161 |
*/
|
|
|
162 |
'entries' => [],
|
|
|
163 |
],
|
|
|
164 |
],
|
|
|
165 |
];
|