src/DriverCreator.php
protected function createDriver($driverClass): Driver\DriverInterface
    {
        return isset($this->container)
            ? $this->container->get($driverClass)
            : new $driverClass();
    }
protected function createDriver($driverClass): Driver\DriverInterface
    {
        return isset($this->container)
            ? $this->container->get($driverClass)
            : new $driverClass();
    }
Create driver using Container or "new" operator

@param string $driverClass
@param array $config
@return Driver\DriverInterface