protected function setupDriverConfig(string $driver): ?array
    {
        if (isset($this->config[$driver])) {
            return null;
        }

        if (\is_null($config = Arr::pull($this->config, "drivers.{$driver}"))) {
            return null;
        }

        $connection = $this->config['connection'] ?? null;

        if (! \is_null($connection) && $this->driverExcludedByOptions($driver, $connection['options'])) {
            $connection = null;
        }

        return $this->config[$driver] = \array_merge($config, ['connection' => $connection]);
    }
protected function setupDriverConfig(string $driver): ?array
    {
        if (isset($this->config[$driver])) {
            return null;
        }

        if (\is_null($config = Arr::pull($this->config, "drivers.{$driver}"))) {
            return null;
        }

        $connection = $this->config['connection'] ?? null;

        if (! \is_null($connection) && $this->driverExcludedByOptions($driver, $connection['options'])) {
            $connection = null;
        }

        return $this->config[$driver] = \array_merge($config, ['connection' => $connection]);
    }
protected function setupDriverConfig ( string $ driver ) : ? array { if ( isset ( $ this -> config [ $ driver ] ) ) { return null ; } if ( \ is_null ( $ config = Arr :: pull ( $ this -> config , "drivers.{$driver}" ) ) ) { return null ; } $ connection = $ this -> config [ 'connection' ] ?? null ; if ( ! \ is_null ( $ connection ) && $ this -> driverExcludedByOptions ( $ driver , $ connection [ 'options' ] ) ) { $ connection = null ; } return $ this -> config [ $ driver ] = \ array_merge ( $ config , [ 'connection' => $ connection ] ) ; }
Prepare configuration values.

@param  string  $driver

@return array|null
Prepare configuration values .