Class HttpDispatcher
| category |
System |
|---|---|
| package |
Http |
| implements |
HttpDispatcherInterface |
__construct(\HttpContextReaderInterface $httpContextReader, \HttpViewControllerFactoryInterface $httpViewControllerFactory)
| Throws |
|
|---|
\HttpContextReaderInterface
\HttpViewControllerFactoryInterface
dispatch(\HttpContextInterface $httpContext)
If the http request is valid and can get handled by a controller class, the controllers ::proceed method is invoked by the dispatcher. Otherwise, the method will throw a missing controller name exception.
| Throws |
|
|---|
httpContextReader : \HttpContextReaderInterface
httpViewControllerFactory : \HttpViewControllerFactoryInterface