src/CronHelper/Service/CronService.php
public function setEmitEvents($emitEvents)
    {
        if (!is_bool($emitEvents)) {
            throw new \InvalidArgumentException('`emitEvents` expects boolean value!');
        }

        $this->options['emitEvents'] = (bool) $emitEvents;
        return $this;
    }
public function setEmitEvents($emitEvents)
    {
        if (!is_bool($emitEvents)) {
            throw new \InvalidArgumentException('`emitEvents` expects boolean value!');
        }

        $this->options['emitEvents'] = (bool) $emitEvents;
        return $this;
    }
Set TRUE if events are emitted during job processing.

@param boolean $emitEvents
@return CronService
@throws \InvalidArgumentException Whenever `$emitEvents` is not a boolean value.