Ejemplo n.º 1
0
 public function _dump($value)
 {
     if ($value instanceof Model) {
         return $this->dumpActiveModel($value);
     } elseif ($value instanceof Word) {
         $value = (string) $value;
     }
     return parent::_dump($value);
 }
Ejemplo n.º 2
0
 /**
  * Override the public dump function, so we can display plain
  * text from ShellWrap instead of an object dump.
  **/
 public function _dump($value)
 {
     if (is_object($value) && get_class($value) == 'MrRio\\ShellWrap') {
         echo strval($value);
         // Return zero, as this is the exit code
         // Otherwise an exception was thrown
         return 0;
     }
     return parent::_dump($value);
 }