프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$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 |