src/Yggdrasil/Core/Driver/DriverCollection.php
public function get(string $key): DriverInterface
    {
        if (!$this->has($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->appConfiguration);
    }
public function get(string $key): DriverInterface
    {
        if (!$this->has($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->appConfiguration);
    }
public function get ( string $ key ) : DriverInterface { if ( ! $ this -> has ( $ 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 -> appConfiguration ) ; }
Returns configured driver instance
This method in fact 'installs' driver in application

@param string $key Name of driver
@return DriverInterface
@throws DriverNotFoundException if requested driver doesn't exist
Returns configured driver instance This method in fact installs driver in application