JApplicationBase::loadDispatcher
Allows the application to load a custom or default dispatcher.
The logic and options for creating this object are adequately generic for default cases but for many applications it will make sense to override this method and create event dispatchers, if required, based on more specific needs.
Signature
public function loadDispatcher([JEventDispatcher
$dispatcher = null] )
Parameters
-
$dispatcher
- An optional dispatcher object. If omitted, the factory dispatcher is created.
Returns
- JApplicationBase
- This method is chainable.