RouterFactory

Implements RouterFactoryInterface

Default router factory.

since

4.0.0

package

Application

Methods

__construct

The namespace must be like: Joomla\Component\Content

__construct(string namespace, \Joomla\CMS\Categories\CategoryFactoryInterface categoryFactory = null, \Joomla\Database\DatabaseInterface db = null) : mixed
since

4.0.0

Arguments

namespace

stringThe namespace

categoryFactory

\Joomla\CMS\Categories\CategoryFactoryInterfaceThe category object

db

\Joomla\Database\DatabaseInterfaceThe database object

Response

mixed

createRouter

Creates a router.

createRouter(\Joomla\CMS\Application\CMSApplicationInterface application, \Joomla\CMS\Menu\AbstractMenu menu) : \Joomla\CMS\Component\Router\RouterInterface
since

4.0.0

Arguments

application

\Joomla\CMS\Application\CMSApplicationInterfaceThe application

menu

\Joomla\CMS\Menu\AbstractMenuThe menu object to work with

Response

\Joomla\CMS\Component\Router\RouterInterface

Properties

namespace

The namespace to create the categories from.

since

4.0.0

Type(s)

string

categoryFactory

The category factory

since

4.0.0

Type(s)

CategoryFactoryInterface

db

The db

since

4.0.0

Type(s)

\Joomla\Database\DatabaseInterface