src/BDK/AsyncEventDispatcher/AsyncEventDispatcher.php
public function addDriver(AsyncEventDriverInterface $driver, $eventName = null)
    {
        $this->drivers[$driver->getName()] = $driver;
        if (null === $eventName) {
            foreach ($this->events as $name => $currentDriver) {
                $this->events[$name][$driver->getName()] = $driver;
            }
        }

        if (!isset($this->events[$eventName][$driver->getName()])) {
            $this->events[$eventName][$driver->getName()] = $driver;
        }
    }
public function addDriver(AsyncEventDriverInterface $driver, $eventName = null)
    {
        $this->drivers[$driver->getName()] = $driver;
        if (null === $eventName) {
            foreach ($this->events as $name => $currentDriver) {
                $this->events[$name][$driver->getName()] = $driver;
            }
        }

        if (!isset($this->events[$eventName][$driver->getName()])) {
            $this->events[$eventName][$driver->getName()] = $driver;
        }
    }
{@inherit}