Class HttpDispatcher
| category |
System |
|---|---|
| package |
Http |
| implements |
HttpDispatcherInterface |
__construct(\HttpContextReaderInterface $httpContextReader, \HttpViewControllerFactoryInterface $httpViewControllerFactory)
| throws |
If no controller is found. |
|---|---|
\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 |
When the http request context is invalid. |
|---|---|
httpContextReader : \HttpContextReaderInterface
httpViewControllerFactory : \HttpViewControllerFactoryInterface