App\Modules\Files\Controllers\Admin\Files::serveFile PHP Method

serveFile() protected method

Return a Symfony Response instance for serving a File
protected serveFile ( string $path ) : Response
$path string
return Symfony\Component\HttpFoundation\Response
    protected function serveFile($path)
    {
        // Get a File Dispatcher instance.
        $dispatcher = $this->getFileDispatcher();
        return $dispatcher->serve($path, $this->request);
    }