/** * Generate and return response object of manipulated image. * @param mixed * @return StreamedResponse The response object. */ public function getImageResponse() { $request = $this->resolveRequestObject(func_get_args()); $this->makeImage($request); return ResponseFactory::create($this->cache, $request, $this->getCachePath($request)); }
public function testCreate() { $this->assertInstanceOf('Symfony\\Component\\HttpFoundation\\Response', ResponseFactory::create($this->cache, RequestFactory::create('image.jpg'), 'image.jpg')); }
/** * Generate and return response object of manipulated image. * @param mixed * @return StreamedResponse The response object. */ public function getImageResponse() { $request = (new RequestArgumentsResolver())->getRequest(func_get_args()); $this->makeImage($request); return ResponseFactory::create($this->cache, $request, $this->getCachePath($request)); }