Embera\Providers::addProvider PHP Метод

addProvider() публичный Метод

Adds a new Provider into the service map
public addProvider ( string $host, string | object $class, array $params = [] ) : void
$host string The host for the map
$class string | object The class or object that should manage the provider
$params array Custom parameters that should be sent in the url for this Provider
Результат void
    public function addProvider($host, $class, array $params = array())
    {
        $host = preg_replace('~^(?:www)\\.~i', '', strtolower($host));
        $this->services[$host] = $class;
        $this->customParams[$host] = $params;
    }