src/Event/Listener/Metric/SendMetricOnDaemonStarted.php
public function handle(EventInterface $event)
    {
        if (!($event instanceof DaemonStarted)) {
            throw ListenerException::badEventGiven($event);
        }

        $this->metricService->increment('daemon.started');
    }
public function handle(EventInterface $event)
    {
        if (!($event instanceof DaemonStarted)) {
            throw ListenerException::badEventGiven($event);
        }

        $this->metricService->increment('daemon.started');
    }
@param EventInterface $event

@throws ListenerException