Back to Joomla project (class list)

Class RouterFactory - list of methods

Default router factory.

Extends

Package: Joomla\CMS\Component\Router
Copyright: (C) 2018 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE.txt
Located at: Joomla/Component/Router/RouterFactory.php
Project: Joomla

Method Summary

public
(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
Show source code of this method: __construct Source Code

public \Joomla\CMS\Component\Router\RouterInterface
(\Joomla\CMS\Application\CMSApplicationInterface $application, \Joomla\CMS\Menu\AbstractMenu $menu)

Creates a router.
Parameters
  • \Joomla\CMS\Application\CMSApplicationInterface $application The application
  • \Joomla\CMS\Menu\AbstractMenu $menu The menu object to work with
Returns
  • \Joomla\CMS\Component\Router\RouterInterface
Since
  • 4.0.0
Show source code of this method: createRouter Source Code

Properties Summary

private string
$namespace
The namespace to create the categories from.
Since
  • 4.0.0
private \Joomla\CMS\Categories\CategoryFactoryInterface
$categoryFactory
The category factory
Since
  • 4.0.0
private \Joomla\Database\DatabaseInterface
$db
The db
Since
  • 4.0.0

Tags Summary

Since
4.0.0