Back to Module class

Method __construct

public
__construct
(\Joomla\CMS\Dispatcher\ModuleDispatcherFactoryInterface $dispatcherFactory, \Joomla\CMS\Helper\HelperFactoryInterface $helperFactory)
Module constructor.
Parameters
  • \Joomla\CMS\Dispatcher\ModuleDispatcherFactoryInterface $dispatcherFactory The dispatcher factory
  • \Joomla\CMS\Helper\HelperFactoryInterface $helperFactory The helper factory
Since
  • 4.0.0
Class: Module
Project: Joomla

Method __construct - Source code

/**
 * Module constructor.
 *
 * @param   ModuleDispatcherFactoryInterface  $dispatcherFactory  The dispatcher factory
 * @param   HelperFactoryInterface            $helperFactory      The helper factory
 *
 * @since   4.0.0
 */
public function __construct(ModuleDispatcherFactoryInterface $dispatcherFactory, HelperFactoryInterface $helperFactory)
{
    $this->dispatcherFactory = $dispatcherFactory;
    $this->helperFactory = $helperFactory;
}