phpDocumentor

HttpDispatcher
in package
implements HttpDispatcherInterface

Class HttpDispatcher

Tags
category

System

implements

HttpDispatcherInterface

Interfaces, Classes and Traits

HttpDispatcherInterface
Interface HttpDispatcherInterface

Table of Contents

$httpContextReader  : HttpContextReaderInterface
$httpViewControllerFactory  : HttpViewControllerFactoryInterface
__construct()  : mixed
Initializes the http dispatcher.
dispatch()  : mixed
Dispatches the current http request.

Properties

Methods

dispatch()

Dispatches the current http request.

public dispatch(HttpContextInterface $httpContext) : mixed

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.

Parameters
$httpContext : HttpContextInterface

Object which holds information about the current http context.

Tags
throws
MissingControllerNameException

When the http request context is invalid.

Return values
mixed

Search results