This repository was archived by the owner on Sep 10, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +29
-1
lines changed Expand file tree Collapse file tree 3 files changed +29
-1
lines changed Original file line number Diff line number Diff line change 28
28
"require-dev" : {
29
29
"ext-curl" : " *" ,
30
30
"fabpot/php-cs-fixer" : " ~1.1" ,
31
+ "jokkedk/zfdebug" : " ~1.6.2" ,
31
32
"phpcheckstyle/phpcheckstyle" : " V0.14.1" ,
32
33
"phpunit/dbunit" : " 1.3.*@dev" ,
33
34
"phpunit/php-code-coverage" : " ~2.0.11" ,
Original file line number Diff line number Diff line change @@ -164,6 +164,32 @@ protected function _initConfig()
164
164
return $ config ;
165
165
}
166
166
167
+ /** Display the debug toolbar, if enabled. */
168
+ protected function _initZFDebug ()
169
+ {
170
+ $ this ->bootstrap ('config ' );
171
+ $ zfDebugPath = BASE_PATH .'/vendor/jokkedk/zfdebug/library ' ;
172
+
173
+ if (Zend_Registry::get ('configGlobal ' )->debug_toolbar === '1 ' && file_exists ($ zfDebugPath )) {
174
+ set_include_path (get_include_path ().PATH_SEPARATOR .$ zfDebugPath );
175
+
176
+ $ options = array (
177
+ 'plugins ' => array ('Variables ' ,
178
+ 'Database ' => array ('adapter ' => Zend_Registry::get ('dbAdapter ' )),
179
+ 'Exception ' ,
180
+ 'File ' => array ('basePath ' => BASE_PATH ),
181
+ 'Html ' ,
182
+ )
183
+ );
184
+
185
+ $ debug = new ZFDebug_Controller_Plugin_Debug ($ options );
186
+
187
+ $ this ->bootstrap ('frontController ' );
188
+ $ frontController = $ this ->getResource ('frontController ' );
189
+ $ frontController ->registerPlugin ($ debug );
190
+ }
191
+ }
192
+
167
193
/** set up front */
168
194
protected function _initFrontModules ()
169
195
{
Original file line number Diff line number Diff line change @@ -23,6 +23,8 @@ logtrace = 0
23
23
password.prefix =
24
24
; outbound HTTP proxy to be used by PHP (empty for none)
25
25
httpproxy =
26
+ ; show debug toolbar
27
+ debug_toolbar = 0
26
28
27
29
[module]
28
30
@@ -40,7 +42,6 @@ mode.test = 0
40
42
; Show native errors
41
43
error.php = 1
42
44
43
-
44
45
[testing]
45
46
; Activate error reporting using Zend
46
47
mode.debug = 1
You can’t perform that action at this time.
0 commit comments