Stevebauman\Location\Location::setDefaultDriver PHP Méthode

setDefaultDriver() public méthode

Sets the default driver from the configuration.
public setDefaultDriver ( )
    public function setDefaultDriver()
    {
        // Retrieve the default driver.
        $driver = $this->getDriver($this->getDefaultDriver());
        foreach ($this->getDriverFallbacks() as $fallback) {
            // We'll add each fallback to our responsibility chain.
            $driver->fallback($this->getDriver($fallback));
        }
        // Finally, set the driver.
        $this->setDriver($driver);
    }