Свойство | Тип | Описание | |
---|---|---|---|
$config | Configuration Settings | ||
$customParams | Custom parameters for each host/provider | ||
$oembed | instance of \Embera\Oembed | ||
$services | Massive array with the mapping of host -> provider class relation. | ||
$wildCardHosts | Hosts with wildcards, calculated at runtime |
Метод | Описание | |
---|---|---|
__construct ( array $config = [], Embera\Oembed $oembed ) : void | Construct | |
addProvider ( string $host, string | object $class, array $params = [] ) : void | Adds a new Provider into the service map | |
getAll ( array | string $urls ) : array | Returns an array with all valid services found. |
Метод | Описание | |
---|---|---|
extractCustomParams ( array $params = [] ) : array | Extracts custom parameters for a Provider | |
findServices ( array $urls = [] ) : array | Finds services for the given $urls. | |
getHost ( string $url ) : string | Gets a normalized host for the given $url |
public __construct ( array $config = [], Embera\Oembed $oembed ) : void | ||
$config | array | Associative array with configuration options |
$oembed | Embera\Oembed | Instance of \Embera\Oembed |
Результат | void |
protected extractCustomParams ( array $params = [] ) : array | ||
$params | array | |
Результат | array |
protected findServices ( array $urls = [] ) : array | ||
$urls | array | An array with all the available urls |
Результат | array | An Array with loaded services |
protected $services |