code: protected function createDriver($driverClass): Driver\DriverInterface
      {
          return isset($this->container)
              ? $this->container->get($driverClass)
              : new $driverClass();
      }
docs: Create driver using Container or "new" operator
  
  @param string $driverClass
  @param array $config
  @return Driver\DriverInterface