RouterFactory

实现 RouterFactoryInterface

默认路由工厂。

4.0.0

Joomla CMS

方法

__construct

命名空间必须类似于:Joomla\Component\Content

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

4.0.0

参数

命名空间

string命名空间

categoryFactory

CategoryFactoryInterface类别对象

db

DatabaseInterface数据库对象

响应

混合

createRouter

创建路由器。

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

4.0.0

参数

应用程序

CMSApplicationInterface应用程序

菜单

AbstractMenu要使用的菜单对象

响应

RouterInterface

属性

命名空间

要从中创建类别的命名空间。

4.0.0

类型(s)

字符串

categoryFactory

类别工厂

4.0.0

类型(s)

CategoryFactoryInterface

db

数据库

4.0.0

类型(s)

DatabaseInterface