프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$cache | CacheInterface | ||
$config | |||
$logger | Psr\Log\LoggerInterface | ||
$name | |||
$pages |
메소드 | 설명 | |
---|---|---|
__construct ( |
||
get ( $url ) : string | Retrieve the content of the specified $url Caching will be used where possible |
메소드 | 설명 | |
---|---|---|
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 | ||
리턴 | string | Page html. Empty string on failure |