src/Yggdrasil/Core/Configuration/AbstractConfiguration.php
public function loadDriver(string $key): DriverInterface
    {
        if (!$this->hasDriver($key)) {
            throw new DriverNotFoundException('Driver you are looking for doesn\'t exist. Make sure that ' . $key . ' driver is properly configured.');
        }

        return $this->drivers[$key]::install($this);
    }
public function loadDriver(string $key): DriverInterface
    {
        if (!$this->hasDriver($key)) {
            throw new DriverNotFoundException('Driver you are looking for doesn\'t exist. Make sure that ' . $key . ' driver is properly configured.');
        }

        return $this->drivers[$key]::install($this);
    }
public function loadDriver ( string $ key ) : DriverInterface { if ( ! $ this -> hasDriver ( $ key ) ) { throw new DriverNotFoundException ( 'Driver you are looking for doesn\'t exist. Make sure that ' . $ key . ' driver is properly configured.' ) ; } return $ this -> drivers [ $ key ] :: install ( $ this ) ; }
Returns configured instance of given driver

@param string $key Name of driver
@return DriverInterface
@throws DriverNotFoundException if given driver doesn't exist
Returns configured instance of given driver