public function registerDriver($name, DriverInterface $driver)
    {
        $name = strtolower($name);
        $this->drivers[$name] = $driver;
    }
public function registerDriver($name, DriverInterface $driver)
    {
        $name = strtolower($name);
        $this->drivers[$name] = $driver;
    }
public function registerDriver ( $ name , DriverInterface $ driver ) { $ name = strtolower ( $ name ) ; $ this -> drivers [ $ name ] = $ driver ; }
Register a new driver.

@param string $name
Driver name.
@param \Drupal\Driver\DriverInterface $driver
An instance of a DriverInterface.
Register a new driver .