| Server IP : 54.36.91.62 / Your IP : 216.73.217.112 Web Server : Apache System : Linux webm013.cluster127.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 User : coopiak ( 151928) PHP Version : 8.3.23 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/coopiak/amisdesseniors-fr/components/com_akeebabackup/src/Service/ |
Upload File : |
<?php
/**
* @package akeebabackup
* @copyright Copyright 2006-2025 Nicholas K. Dionysopoulos / Akeeba Ltd
* @license GNU General Public License version 3, or later
*/
namespace Akeeba\Component\AkeebaBackup\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;
use Joomla\CMS\MVC\Factory\MVCFactory;
use Joomla\CMS\MVC\Factory\MVCFactoryAwareTrait;
class Router extends RouterView
{
use MVCFactoryAwareTrait;
public function __construct(SiteApplication $app, AbstractMenu $menu, MVCFactory $factory,)
{
$this->setMVCFactory($factory);
$apiView = new RouterViewConfiguration('api');
$apiView->setKey('task');
$this->registerView($apiView);
$backupView = new RouterViewConfiguration('backup');
$backupView->setKey('task');
$this->registerView($backupView);
$checkView = new RouterViewConfiguration('check');
$checkView->setKey('task');
$this->registerView($checkView);
$oauth2View = new RouterViewConfiguration('oauth2');
$oauth2View->setKey('engine');
$this->registerView($oauth2View);
parent::__construct($app, $menu);
$this->attachRule(new MenuRules($this));
$this->attachRule(new StandardRules($this));
$this->attachRule(new NomenuRules($this));
}
public function build(&$query)
{
if (isset($query['view']) && !empty($query['view']))
{
$query['view'] = strtolower($query['view']);
}
return parent::build($query);
}
}