public function addServiceListener(string $eventName, array $listener, $priority = 0): ContainerMediatorInterface
    {
        $this->checkEventName($eventName);
        $this->checkAllowedServiceListener($listener);
        $priority = $this->getActualPriority($eventName, $priority);
        if (\array_key_exists($eventName, $this->serviceListeners)
            && \array_key_exists($priority, $this->serviceListeners[$eventName])
            && \in_array($listener, $this->serviceListeners[$eventName][$priority], \true)
        ) {
            return $this;
        }
        $this->serviceListeners[$eventName][$priority][] = $listener;
        return $this;
    }