[ Index ]

PHP Cross Reference of phpBB-3.2.11-deutsch

title

Body

[close]

/vendor/symfony/http-kernel/EventListener/ -> RouterListener.php (summary)

(no description)

File Size: 194 lines (8 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

RouterListener:: (6 methods):
  __construct()
  setRequest()
  setCurrentRequest()
  onKernelFinishRequest()
  onKernelRequest()
  getSubscribedEvents()


Class: RouterListener  - X-Ref

Initializes the context from the request and sets request attributes based on a matching route.

This listener works in 2 modes:

* 2.3 compatibility mode where you must call setRequest whenever the Request changes.
* 2.4+ mode where you must pass a RequestStack instance in the constructor.

__construct($matcher, $requestStack = null, $context = null, $logger = null)   X-Ref
RequestStack will become required in 3.0.

param: UrlMatcherInterface|RequestMatcherInterface $matcher      The Url or Request matcher
param: RequestStack                                $requestStack A RequestStack instance
param: RequestContext|null                         $context      The RequestContext (can be null when $matcher implements RequestContextAwareInterface)
param: LoggerInterface|null                        $logger       The logger

setRequest(Request $request = null)   X-Ref
Sets the current Request.

This method was used to synchronize the Request, but as the HttpKernel
is doing that automatically now, you should never call it directly.
It is kept public for BC with the 2.3 version.

param: Request|null $request A Request instance

setCurrentRequest(Request $request = null)   X-Ref
No description

onKernelFinishRequest(FinishRequestEvent $event)   X-Ref
No description

onKernelRequest(GetResponseEvent $event)   X-Ref
No description

getSubscribedEvents()   X-Ref
No description



Generated: Wed Nov 11 20:33:01 2020 Cross-referenced by PHPXref 0.7.1