X7ROOT File Manager
Current Path:
/home/notabjze/just4dastreets.com/libraries/src/Component/Router
home
/
notabjze
/
just4dastreets.com
/
libraries
/
src
/
Component
/
Router
/
ðŸ“
..
📄
RouterBase.php
(1.46 KB)
📄
RouterFactory.php
(2.08 KB)
📄
RouterFactoryInterface.php
(803 B)
📄
RouterInterface.php
(1.56 KB)
📄
RouterLegacy.php
(2.17 KB)
📄
RouterServiceInterface.php
(824 B)
📄
RouterServiceTrait.php
(1.27 KB)
📄
RouterView.php
(5.49 KB)
📄
RouterViewConfiguration.php
(4.11 KB)
ðŸ“
Rules
Editing: RouterFactory.php
<?php /** * Joomla! Content Management System * * @copyright (C) 2018 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ namespace Joomla\CMS\Component\Router; \defined('_JEXEC') or die; use Joomla\CMS\Application\CMSApplicationInterface; use Joomla\CMS\Categories\CategoryFactoryInterface; use Joomla\CMS\Menu\AbstractMenu; use Joomla\Database\DatabaseInterface; /** * Default router factory. * * @since 4.0.0 */ class RouterFactory implements RouterFactoryInterface { /** * The namespace to create the categories from. * * @var string * @since 4.0.0 */ private $namespace; /** * The category factory * * @var CategoryFactoryInterface * * @since 4.0.0 */ private $categoryFactory; /** * The db * * @var DatabaseInterface * * @since 4.0.0 */ private $db; /** * The namespace must be like: * Joomla\Component\Content * * @param string $namespace The namespace * @param CategoryFactoryInterface $categoryFactory The category object * @param DatabaseInterface $db The database object * * @since 4.0.0 */ public function __construct($namespace, CategoryFactoryInterface $categoryFactory = null, DatabaseInterface $db = null) { $this->namespace = $namespace; $this->categoryFactory = $categoryFactory; $this->db = $db; } /** * Creates a router. * * @param CMSApplicationInterface $application The application * @param AbstractMenu $menu The menu object to work with * * @return RouterInterface * * @since 4.0.0 */ public function createRouter(CMSApplicationInterface $application, AbstractMenu $menu): RouterInterface { $className = trim($this->namespace, '\\') . '\\' . ucfirst($application->getName()) . '\\Service\\Router'; if (!class_exists($className)) { throw new \RuntimeException('No router available for this application.'); } return new $className($application, $menu, $this->categoryFactory, $this->db); } }
Upload File
Create Folder