public function __construct(PageInfo $pageInfo, ImagickTaskQueue $taskQueue) { $activeCategory = $pageInfo->getCategory(); $activeExample = $pageInfo->getExample(); $this->imageBaseURL = \ImagickDemo\Route::getImageURL($activeCategory, $activeExample); $this->orignalImageBaseURL = \ImagickDemo\Route::getOriginalImageURL($activeCategory, $activeExample); $this->customImageBaseURL = \ImagickDemo\Route::getCustomImageURL($activeCategory, $activeExample); $this->imageStatusBaseURL = \ImagickDemo\Route::getImageStatusURL($activeCategory, $activeExample); $this->taskQueue = $taskQueue; }
public function getCustomImageURL(array $extraParams = array()) { $paramString = ''; $separator = '?'; foreach ($extraParams as $key => $value) { $paramString .= $separator . $key . "=" . $value; $separator = '&'; } return Route::getCustomImageURL($this->activeCategory, $this->activeExample) . $paramString; }