(Yaf >=1.0.0)
Yaf_Dispatcher purpose is to initialize the request environment, route the incoming request, and then dispatch any discovered actions; it aggregates any responses and returns them when the process is complete.
Yaf_Dispatcher also implements the Singleton pattern, meaning only a single instance of it may be available at any given time. This allows it to also act as a registry on which the other objects in the dispatch process may draw.
The Yaf_Router instance used by the dispatcher to route requests.
The Yaf_View_Interface implementation used to render views, lazily initialized on first dispatch.
The request object being dispatched.
The list of plugins registered with Yaf_Dispatcher::registerPlugin().
Static reference to the single dispatcher instance.
Whether the dispatcher automatically renders the view after
dispatching. Defaults to true.
Whether Yaf_Application::run() returns
the response object instead of sending it directly. Defaults to
false.
Whether the response body is flushed immediately when it is
set. Defaults to true.
The default module name, from the application.dispatcher.defaultModule configuration entry.
The default controller name, from the application.dispatcher.defaultController configuration entry.
The default action name, from the application.dispatcher.defaultAction configuration entry.