/** * */ protected static function _shutdown($response, $print, $obj) { $event = Event::getEvent('app'); if (is_array($event) && ptc_array_get($event, 'stop', false)) { ptc_fire('app.stop', array($obj, &$response)); } if (!$print) { return $response; } echo $response; }