⇦  Back to LegacyComponent classMethod getDispatcher
public \Joomla\CMS\Dispatcher\DispatcherInterface
getDispatcher
(\Joomla\CMS\Application\CMSApplicationInterface $application)
Returns the dispatcher for the given application.
Parameters
- \Joomla\CMS\Application\CMSApplicationInterface  $application  The application
 
Returns
- \Joomla\CMS\Dispatcher\DispatcherInterface
 
Since
Method getDispatcher - Source code
/**
 * Returns the dispatcher for the given application.
 *
 * @param   CMSApplicationInterface  $application  The application
 *
 * @return  DispatcherInterface
 *
 * @since   4.0.0
 */
public function getDispatcher(CMSApplicationInterface $application) : DispatcherInterface
{
    return new LegacyComponentDispatcher($application);
}