RouterFactory
Implements RouterFactoryInterfaceDefault router factory.
| since |
4.0.0 |
|---|---|
| package |
Joomla CMS |
Methods
__construct
The namespace must be like: Joomla\Component\Content
__construct( namespace, \Joomla\CMS\Categories\CategoryFactoryInterface categoryFactory = null, \Joomla\Database\DatabaseInterface db = null) :
| since |
4.0.0 |
|---|
Arguments
- namespace
stringThe namespace- categoryFactory
CategoryFactoryInterfaceThe category object- db
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
CMSApplicationInterfaceThe application- menu
AbstractMenuThe menu object to work with
Response
Properties
namespace
The namespace to create the categories from.
| since |
4.0.0 |
|---|
Type(s)
string
db
The db
| since |
4.0.0 |
|---|
Type(s)
DatabaseInterface