CoreFiles by mySites.guru
Router.php51 lines, 1,528 bytes, from Joomla_4.1.1-Stable-Full_Package.zip
Raw History Compare with 4.1.0
md5
35c1588e46563f8325c30309ba25381e
sha1
8de7e0eb59af19ce895083d1b1322802cf3d51fb
sha256
ced9e10c6543bdafe35311edc8a9e5bcea3dfab7b6233cdc6a6310b540db3be5
<?php
/**
 * @package     Joomla.Site
 * @subpackage  com_users
 *
 * @copyright   (C) 2009 Open Source Matters, Inc. <https://www.joomla.org>
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

namespace Joomla\Component\Users\Site\Service;

\defined('_JEXEC') or die;

use Joomla\CMS\Application\SiteApplication;
use Joomla\CMS\Component\Router\RouterView;
use Joomla\CMS\Component\Router\RouterViewConfiguration;
use Joomla\CMS\Component\Router\Rules\MenuRules;
use Joomla\CMS\Component\Router\Rules\NomenuRules;
use Joomla\CMS\Component\Router\Rules\StandardRules;
use Joomla\CMS\Menu\AbstractMenu;

/**
 * Routing class from com_users
 *
 * @since  3.2
 */
class Router extends RouterView
{
	/**
	 * Users Component router constructor
	 *
	 * @param   SiteApplication  $app   The application object
	 * @param   AbstractMenu     $menu  The menu object to work with
	 */
	public function __construct(SiteApplication $app, AbstractMenu $menu)
	{
		$this->registerView(new RouterViewConfiguration('login'));
		$profile = new RouterViewConfiguration('profile');
		$profile->addLayout('edit');
		$this->registerView($profile);
		$this->registerView(new RouterViewConfiguration('registration'));
		$this->registerView(new RouterViewConfiguration('remind'));
		$this->registerView(new RouterViewConfiguration('reset'));

		parent::__construct($app, $menu);

		$this->attachRule(new MenuRules($this));
		$this->attachRule(new StandardRules($this));
		$this->attachRule(new NomenuRules($this));
	}
}

The same content is in 49 releases, Joomla 4.0.0-beta6 to 4.2.0-alpha3. See them all, or every version of this file.