function __construct(PageInfo $pageInfo, ImagickTaskQueue $taskQueue) { $activeCategory = $pageInfo->getCategory(); $activeExample = $pageInfo->getExample(); $this->imageBaseURL = getImageURL($activeCategory, $activeExample); $this->customImageBaseURL = getCustomImageURL($activeCategory, $activeExample); $this->imageStatusBaseURL = getImageStatusURL($activeCategory, $activeExample); $this->taskQueue = $taskQueue; }
public function getImageStatusURL($extraParams = []) { $path = getImageStatusURL($this->activeCategory, $this->activeExample); return $path . '?' . http_build_query($extraParams); }