RedirectResponseSubscriber::__construct

public RedirectResponseSubscriber::__construct(UnroutedUrlAssemblerInterface $url_assembler, RequestContext $request_context)

Constructs a RedirectResponseSubscriber object.

Parameters

\Drupal\Core\Utility\UnroutedUrlAssemblerInterface $url_assembler: The unrouted URL assembler service.

\Drupal\Core\Routing\RequestContext $request_context: The request context.

File

core/lib/Drupal/Core/EventSubscriber/RedirectResponseSubscriber.php, line 37

Class

RedirectResponseSubscriber
Allows manipulation of the response object when performing a redirect.

Namespace

Drupal\Core\EventSubscriber

Code

public function __construct(UnroutedUrlAssemblerInterface $url_assembler, RequestContext $request_context) {
  $this->unroutedUrlAssembler = $url_assembler;
  $this->requestContext = $request_context;
}
doc_Drupal
2016-10-29 09:36:57
Comments
Leave a Comment

Please login to continue.