public function setDefaultProvider($name = 'default') { if ($this->getProvider($name) instanceof ProviderInterface) { $this->default = $name; } }