Skip to content
This repository was archived by the owner on Jan 1, 2020. It is now read-only.

Commit 2eec71f

Browse files
committed
Merge branch 'feature/zend-developer-tools' into develop
Clsoe #347
2 parents 2da9598 + cdd10ed commit 2eec71f

File tree

3 files changed

+187
-16
lines changed

3 files changed

+187
-16
lines changed

composer.json

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
"prefer-stable": true,
1414
"require": {
1515
"php": "^5.6 || ^7.0",
16-
"zendframework/zend-component-installer": "^1.0 || ^0.2 || ^1.0.0-dev@dev",
17-
"zendframework/zend-skeleton-installer": "^1.0 || ^0.1.2 || ^1.0.0-dev@dev",
16+
"zendframework/zend-component-installer": "^1.0 || ^0.3 || ^1.0.0-dev@dev",
17+
"zendframework/zend-skeleton-installer": "^1.0 || ^0.1.3 || ^1.0.0-dev@dev",
1818
"zendframework/zend-mvc": "^3.0.1",
1919
"zfcampus/zf-development-mode": "^3.0"
2020
},
@@ -30,6 +30,13 @@
3030
},
3131
"extra": {
3232
"zend-skeleton-installer": [
33+
{
34+
"name": "zendframework/zend-developer-tools",
35+
"constraint": "^1.1.0",
36+
"prompt": "Would you like to install the developer toolbar?",
37+
"module": true,
38+
"dev": true
39+
},
3340
{
3441
"name": "zendframework/zend-cache",
3542
"constraint": "^2.7.1",

composer.lock

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

0 commit comments

Comments
 (0)