Back to Joomla project (class list)

Class RouterServiceTrait - list of methods

Trait to implement AssociationServiceInterface
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/RouterServiceTrait.php
Project: Joomla

Method Summary

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

Returns the router.
Parameters
  • \Joomla\CMS\Application\CMSApplicationInterface $application The application object
  • \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

public void
(\Joomla\CMS\Component\Router\RouterFactoryInterface $routerFactory)

The router factory.
Parameters
  • \Joomla\CMS\Component\Router\RouterFactoryInterface $routerFactory The router factory
Returns
  • void
Since
  • 4.0.0
Show source code of this method: setRouterFactory Source Code

Properties Summary

private \Joomla\CMS\Component\Router\RouterFactoryInterface
$routerFactory
The router factory.
Since
  • 4.0.0

Tags Summary

Since
4.0.0