/** * @param \Auryn\Injector $injector * @param $customImageFunction * @param \ImagickDemo\Example $exampleController * @param \ImagickDemo\Control $control * @return mixed * @throws \Exception */ function getCustomImageResponse(CategoryNav $categoryNav, \Auryn\Injector $injector, $customImageFunction, \ImagickDemo\Example $exampleController, \ImagickDemo\Control $control) { $injector->defineParam('imageFunction', $customImageFunction); $params = $control->getFullParams($exampleController->getCustomImageParams()); $defaultCustomParams = array('customImage' => true); $params = array_merge($defaultCustomParams, $params); return $this->getImageResponseInternal($categoryNav, $injector, $params); }
public function getImageResponse(\ImagickDemo\Control $control) { $params = $control->getFullParams([]); $params['customImage'] = false; $injectionParams = InjectionParams::fromParams(array('params' => $params, 'customImage' => false)); $tiers = []; $tiers[] = new Executable('cachedImageCallable', $injectionParams); $tiers[] = new Executable('createImageTask'); $tiers[] = new Executable('directImageCallable'); return $tiers; }