src/PubSubManager.php
protected function makeConnection($name)
    {
        $config = $this->getConnectionConfig($name);

        if (isset($this->extensions[$name])) {
            return call_user_func($this->extensions[$name], $config, $name);
        }

        if (!isset($config['driver'])) {
            throw new InvalidArgumentException(
                sprintf('The pub-sub connection [%s] is missing a "driver" config var.', $name)
            );
        }

        return $this->factory->make($config['driver'], array_except($config, ['driver']));
    }
protected function makeConnection($name)
    {
        $config = $this->getConnectionConfig($name);

        if (isset($this->extensions[$name])) {
            return call_user_func($this->extensions[$name], $config, $name);
        }

        if (!isset($config['driver'])) {
            throw new InvalidArgumentException(
                sprintf('The pub-sub connection [%s] is missing a "driver" config var.', $name)
            );
        }

        return $this->factory->make($config['driver'], array_except($config, ['driver']));
    }
protected function makeConnection ( $ name ) { $ config = $ this -> getConnectionConfig ( $ name ) ; if ( isset ( $ this -> extensions [ $ name ] ) ) { return call_user_func ( $ this -> extensions [ $ name ] , $ config , $ name ) ; } if ( ! isset ( $ config [ 'driver' ] ) ) { throw new InvalidArgumentException ( sprintf ( 'The pub-sub connection [%s] is missing a "driver" config var.' , $ name ) ) ; } return $ this -> factory -> make ( $ config [ 'driver' ] , array_except ( $ config , [ 'driver' ] ) ) ; }
Make an instance of a pub-sub adapter interface.

@param string $name

@return PubSubAdapterInterface
Make an instance of a pub - sub adapter interface .