RouterServiceInterface

The component router service.

since

4.0.0

package

Application

Methods

createRouter

Returns the 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 object

menu

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

Response

\Joomla\CMS\Component\Router\RouterInterface