CoreFiles by mySites.guru
Router.php48 lines, 1,410 bytes, from Joomla_4.2.0-beta3-Beta-Full_Package.zip
Raw History Compare with 4.2.0-beta2
md5
9c04cdfdf39aa0a1d270b80d5f414953
sha1
f4cf99e384351b546da0aa8e7624c88d9ff6b8b0
sha256
b0990e555e617cb44057e2ab247e57993900525db77fcd75b2054a559f121b9f
<?php

/**
 * @package     Joomla.Site
 * @subpackage  com_privacy
 *
 * @copyright   (C) 2019 Open Source Matters, Inc. <https://www.joomla.org>
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

namespace Joomla\Component\Privacy\Site\Service;

use Joomla\CMS\Application\CMSApplication;
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_privacy
 *
 * @since  3.9.0
 */
class Router extends RouterView
{
    /**
     * Privacy Component router constructor
     *
     * @param   CMSApplication  $app   The application object
     * @param   AbstractMenu    $menu  The menu object to work with
     *
     * @since   3.9.0
     */
    public function __construct($app = null, $menu = null)
    {
        $this->registerView(new RouterViewConfiguration('confirm'));
        $this->registerView(new RouterViewConfiguration('request'));
        $this->registerView(new RouterViewConfiguration('remind'));

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

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

The same content is in 5 releases, Joomla 4.2.0-beta3 to 4.2.1-rc2. See them all, or every version of this file.