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;
 }
Example #2
0
 public function getImageStatusURL($extraParams = [])
 {
     $path = Route::getImageStatusURL($this->activeCategory, $this->activeExample);
     return $path . '?' . http_build_query($extraParams);
 }