Back to Component class

Method 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
  • 4.0.0
Class: Component
Project: Joomla

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 $this->dispatcherFactory->createDispatcher($application);
}