NULL, 'verbose'=>FALSE, ); protected function _execute(array $params) { if (! $params['file']) throw new Kohana_Exception('--file not supplied'); $eo = new Event($params['file']); if (! $eo->save()) { if (! Kohana::$config->load('debug')->test_mode) rename($params['file'],$params['file'].'.bad'); echo 'Bad Event File: '.$params['file']; die(1); } if (! Kohana::$config->load('debug')->test_mode) { if (Kohana::$config->load('config')->event_file_keep) rename($params['file'],$params['file'].'.processed'); else unlink($params['file']); } $eo->trigger(); printf("Processed event(s) %s\n",$eo); } } ?>