Property | Type | Description | |
---|---|---|---|
$cache | CacheInterface | ||
$config | |||
$logger | Psr\Log\LoggerInterface | ||
$name | |||
$pages |
Method | Description | |
---|---|---|
__construct ( |
||
get ( $url ) : string | Retrieve the content of the specified $url Caching will be used where possible |
Method | Description | |
---|---|---|
buildRequest ( $url ) | ||
getCacheKey ( $url ) | ||
getFromCache ( $url ) | ||
requestPage ( $url ) : string | Request the page from IMDb | |
saveToCache ( $url, $page ) |
public __construct ( |
||
$config | ||
$cache | CacheInterface | |
$logger | Psr\Log\LoggerInterface |
protected requestPage ( $url ) : string | ||
$url | ||
return | string | Page html. Empty string on failure |
protected LoggerInterface,Psr\Log $logger | ||
return | Psr\Log\LoggerInterface |