Back to Module class

Method getDispatcher

public \Joomla\CMS\Dispatcher\DispatcherInterface
getDispatcher
(\stdClass $module, \Joomla\CMS\Application\CMSApplicationInterface $application, \Joomla\Input\Input $input = null)
Returns the dispatcher for the given application, module and input.
Parameters
  • \stdClass $module The module
  • \Joomla\CMS\Application\CMSApplicationInterface $application The application
  • \Joomla\Input\Input $input The input object, defaults to the one in the application
Returns
  • \Joomla\CMS\Dispatcher\DispatcherInterface
Since
  • 4.0.0
Class: Module
Project: Joomla

Method getDispatcher - Source code

/**
 * Returns the dispatcher for the given application, module and input.
 *
 * @param   \stdClass                $module       The module
 * @param   CMSApplicationInterface  $application  The application
 * @param   Input                    $input        The input object, defaults to the one in the application
 *
 * @return  DispatcherInterface
 *
 * @since   4.0.0
 */
public function getDispatcher(\stdClass $module, CMSApplicationInterface $application, Input $input = null) : DispatcherInterface
{
    return $this->dispatcherFactory->createDispatcher($module, $application, $input);
}