public function ProxySubscriber::__construct in Stage File Proxy 8
Construct the FetchManager.
Parameters
\Drupal\stage_file_proxy\FetchManagerInterface $manager: The manager used to fetch the file against.
\Psr\Log\LoggerInterface $logger: The logger interface.
\Symfony\Component\EventDispatcher\EventDispatcherInterface $event_dispatcher: The event dispatcher.
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.
\Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack.
File
- src/
EventSubscriber/ ProxySubscriber.php, line 72
Class
- ProxySubscriber
- Stage file proxy subscriber for controller requests.
Namespace
Drupal\stage_file_proxy\EventSubscriberCode
public function __construct(FetchManagerInterface $manager, LoggerInterface $logger, EventDispatcherInterface $event_dispatcher, ConfigFactoryInterface $config_factory, RequestStack $request_stack) {
$this->manager = $manager;
$this->logger = $logger;
$this->eventDispatcher = $event_dispatcher;
$this->configFactory = $config_factory;
$this->requestStack = $request_stack;
}