/** * @param kGenericEventConsumer $consumer * @return bool true if should continue to the next consumer */ protected function consumeGeneric(kGenericEventConsumer $consumer) { if (!$consumer->shouldConsumeEvent($this)) { return true; } KalturaLog::debug(get_class($this) . ' event consumed by ' . get_class($consumer)); return $consumer->consumeEvent($this); }
/** * @param kGenericEventConsumer $consumer * @return bool true if should continue to the next consumer */ protected function consumeGeneric(kGenericEventConsumer $consumer) { if (!$consumer->shouldConsumeEvent($this)) { return true; } KalturaLog::debug('consumer [' . get_class($consumer) . '] started handling [' . get_class($this) . ']'); $result = $consumer->consumeEvent($this); KalturaLog::debug('consumer [' . get_class($consumer) . '] finished handling [' . get_class($this) . ']'); return $result; }