Skip to content
Snippets Groups Projects
Commit 4ac137de authored by Alex Pott's avatar Alex Pott
Browse files

Issue #2304801 by pwolanin: Fixed Missing @param in UrlGenerator for request stack.

parent b99fa408
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -91,8 +91,10 @@ class UrlGenerator extends ProviderBasedGenerator implements UrlGeneratorInterfa
* The read only settings.
* @param \Psr\Log\LoggerInterface $logger
* An optional logger for recording errors.
* @param \Symfony\Component\HttpFoundation\RequestStack $request_stack
* A request stack object.
*/
public function __construct(RouteProviderInterface $provider, OutboundPathProcessorInterface $path_processor, OutboundRouteProcessorInterface $route_processor, ConfigFactoryInterface $config, Settings $settings, LoggerInterface $logger = NULL, RequestStack $requestStack) {
public function __construct(RouteProviderInterface $provider, OutboundPathProcessorInterface $path_processor, OutboundRouteProcessorInterface $route_processor, ConfigFactoryInterface $config, Settings $settings, LoggerInterface $logger = NULL, RequestStack $request_stack) {
parent::__construct($provider, $logger);
$this->pathProcessor = $path_processor;
......@@ -100,7 +102,7 @@ public function __construct(RouteProviderInterface $provider, OutboundPathProces
$this->mixedModeSessions = $settings->get('mixed_mode_sessions', FALSE);
$allowed_protocols = $config->get('system.filter')->get('protocols') ?: array('http', 'https');
UrlHelper::setAllowedProtocols($allowed_protocols);
$this->requestStack = $requestStack;
$this->requestStack = $request_stack;
$this->updateFromRequest();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment