/** * @param string $filePathAndName Absolute path to the file to serve * @param HttpResponse $httpResponse The current HTTP response (allows setting headers, ...) * @return void */ public function serve($filePathAndName, HttpResponse $httpResponse) { $httpResponse->sendHeaders(); readfile($filePathAndName); exit; }