Exemple #1
0
 /**
  * Log debug data to file
  *
  * @param mixed $debugData
  * @return $this
  */
 protected function _debug($debugData)
 {
     if (!$this->config->isDebugEnabled()) {
         return $this;
     }
     if (!is_array($debugData)) {
         if (is_object($debugData)) {
             $debugData = var_export($debugData, true);
         } else {
             $debugData = [$debugData];
         }
     }
     parent::_debug((array) $debugData);
     return $this;
 }