芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/acancehyucatan.gob.mx/components/com_config/src/Service/Router.php
* @license GNU General Public License version 2 or later; see LICENSE.txt */ namespace Joomla\Component\Config\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_config * * @since 4.0.0 */ class Router extends RouterView { /** * Config 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('config')); $this->registerView(new RouterViewConfiguration('templates')); parent::__construct($app, $menu); $this->attachRule(new MenuRules($this)); $this->attachRule(new StandardRules($this)); $this->attachRule(new NomenuRules($this)); } }