You are here

public function VendorFileDownloadControllerInterface::download in Vendor Stream Wrapper 8

Handles vendor file transfers.

Parameters

\Symfony\Component\HttpFoundation\Request $request: The request object.

Return value

\Symfony\Component\HttpFoundation\BinaryFileResponse The transferred file as response.

Throws

\Symfony\Component\HttpKernel\Exception\NotFoundHttpException Thrown when the requested file does not exist.

1 method overrides VendorFileDownloadControllerInterface::download()
VendorFileDownloadController::download in src/Controller/VendorFileDownloadController.php
Handles vendor file transfers.

File

src/Controller/VendorFileDownloadControllerInterface.php, line 27

Class

VendorFileDownloadControllerInterface
Vendor Stream Wrapper file controller interface.

Namespace

Drupal\vendor_stream_wrapper\Controller

Code

public function download(Request $request);