@@ -36,11 +36,7 @@ public function __construct(Context $context,
3636 $ this ->objectFactory = $ objectFactory ;
3737 $ this ->qdbHelper = $ qdbHelper ;
3838 $ this ->services = $ services ;
39- file_put_contents ('/tmp/debug.log ' , __METHOD__ .__LINE__ .PHP_EOL , FILE_APPEND );
40-
4139 if ($ this ->qdbHelper ->isToolbarAccessAllowed () && $ this ->qdbHelper ->isAjaxLoading ()) {
42- file_put_contents ('/tmp/debug.log ' , __METHOD__ .__LINE__ .PHP_EOL , FILE_APPEND );
43-
4440 register_shutdown_function ([$ this , 'dumpToFile ' ]);
4541 }
4642 }
@@ -51,21 +47,14 @@ public function __construct(Context $context,
5147 */
5248 public function dumpToFile ()
5349 {
54-
55- file_put_contents ('/tmp/debug.log ' , __METHOD__ .__LINE__ .PHP_EOL , FILE_APPEND );
56-
5750 if ($ this ->_getRequest () && $ this ->_getRequest ()->getModuleName ()=='quickdevbar ' ) {
58- file_put_contents ('/tmp/debug.log ' , __METHOD__ .__LINE__ .PHP_EOL , FILE_APPEND );
5951 return false ;
6052 }
61- file_put_contents ('/tmp/debug.log ' , __METHOD__ .__LINE__ .PHP_EOL , FILE_APPEND );
6253
6354 foreach ($ this ->services as $ serviceKey => $ serviceObj ) {
6455 $ this ->setRegisteredData ($ serviceKey , $ serviceObj ->pullData ());
6556 }
66- file_put_contents ('/tmp/debug.log ' , __METHOD__ .__LINE__ .PHP_EOL , FILE_APPEND );
6757 $ content = $ this ->registeredData ->convertToJson ();
68- file_put_contents ('/tmp/debug.log ' , __METHOD__ .__LINE__ .PHP_EOL , FILE_APPEND );
6958 $ this ->qdbHelper ->setWrapperContent ($ content );
7059 }
7160
0 commit comments