\Application\Mvc\Controller\PluginRawResponsePlugin

Controller plugin that serves image, audio, PDF and ZIP files as a raw response

Summary

Methods
Properties
Constants
serveImage()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

serveImage()

serveImage(string  $filepath) : \Application\Mvc\Controller\Plugin\Response

Serve image file based on location

Parameters

string $filepath

absolute location of the file on the server

Returns

\Application\Mvc\Controller\Plugin\Response —

That corresponds to the raw image data