public function VendorFileDownloadController::__construct in Vendor Stream Wrapper 8
Creates a new VendorFileDownloadController instance.
Parameters
\Symfony\Component\HttpFoundation\File\MimeType\MimeTypeGuesserInterface $mimeTypeGuesser: The MIME type guesser.
\Drupal\Core\Logger\LoggerChannelFactoryInterface $loggerFactory: The logger factory.
File
- src/
Controller/ VendorFileDownloadController.php, line 44
Class
- VendorFileDownloadController
- Vendor Stream Wrapper file controller.
Namespace
Drupal\vendor_stream_wrapper\ControllerCode
public function __construct(MimeTypeGuesserInterface $mimeTypeGuesser, LoggerChannelFactoryInterface $loggerFactory) {
$this->mimeTypeGuesser = $mimeTypeGuesser;
$this->logger = $loggerFactory
->get('Vendor File Download');
}