You are here

interface VendorFileDownloadControllerInterface in Vendor Stream Wrapper 8

Vendor Stream Wrapper file controller interface.

Sets up serving of files from the vendor directory, using the vendor:// stream wrapper.

Hierarchy

Expanded class hierarchy of VendorFileDownloadControllerInterface

All classes that implement VendorFileDownloadControllerInterface

File

src/Controller/VendorFileDownloadControllerInterface.php, line 13

Namespace

Drupal\vendor_stream_wrapper\Controller
View source
interface VendorFileDownloadControllerInterface {

  /**
   * Handles vendor file transfers.
   *
   * @param \Symfony\Component\HttpFoundation\Request $request
   *   The request object.
   *
   * @return \Symfony\Component\HttpFoundation\BinaryFileResponse
   *   The transferred file as response.
   *
   * @throws \Symfony\Component\HttpKernel\Exception\NotFoundHttpException
   *   Thrown when the requested file does not exist.
   */
  public function download(Request $request);

}

Members

Namesort descending Modifiers Type Description Overrides
VendorFileDownloadControllerInterface::download public function Handles vendor file transfers. 1