Свойство | Type | Description | |
---|---|---|---|
$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 |
Méthode | Description | |
---|---|---|
__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. |
Méthode | Description | |
---|---|---|
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 |
Résultat | void |
protected extractCustomParams ( array $params = [] ) : array | ||
$params | array | |
Résultat | array |
protected findServices ( array $urls = [] ) : array | ||
$urls | array | An array with all the available urls |
Résultat | array | An Array with loaded services |
protected $customParams |
protected $services |