Back to RouterFactory class

Method __construct

public
__construct
(mixed $namespace, \Joomla\CMS\Categories\CategoryFactoryInterface $categoryFactory = null, \Joomla\Database\DatabaseInterface $db = null)
The namespace must be like: Joomla\Component\Content
Parameters
  • string $namespace The namespace
  • \Joomla\CMS\Categories\CategoryFactoryInterface $categoryFactory The category object
  • \Joomla\Database\DatabaseInterface $db The database object
Since
  • 4.0.0
Class: RouterFactory
Project: Joomla

Method __construct - Source code

/**
 * The namespace must be like:
 * Joomla\Component\Content
 *
 * @param   string                    $namespace        The namespace
 * @param   CategoryFactoryInterface  $categoryFactory  The category object
 * @param   DatabaseInterface         $db               The database object
 *
 * @since   4.0.0
 */
public function __construct($namespace, CategoryFactoryInterface $categoryFactory = null, DatabaseInterface $db = null)
{
    $this->namespace = $namespace;
    $this->categoryFactory = $categoryFactory;
    $this->db = $db;
}