[ Index ] |
PHP Cross Reference of Joomla 4.2.2 documentation |
[Summary view] [Print] [Text view]
1 <?php 2 3 /** 4 * Joomla! Content Management System 5 * 6 * @copyright (C) 2005 Open Source Matters, Inc. <https://www.joomla.org> 7 * @license GNU General Public License version 2 or later; see LICENSE 8 */ 9 10 namespace Joomla\CMS\Dispatcher; 11 12 use Joomla\CMS\Application\CMSApplicationInterface; 13 use Joomla\Input\Input; 14 15 // phpcs:disable PSR1.Files.SideEffects 16 \defined('_JEXEC') or die; 17 // phpcs:enable PSR1.Files.SideEffects 18 19 /** 20 * Base class for a Joomla Dispatcher 21 * 22 * @since 4.0.0 23 */ 24 abstract class Dispatcher implements DispatcherInterface 25 { 26 /** 27 * The application instance 28 * 29 * @var CMSApplicationInterface 30 * @since 4.0.0 31 */ 32 protected $app; 33 34 /** 35 * The input instance 36 * 37 * @var Input 38 * @since 4.0.0 39 */ 40 protected $input; 41 42 /** 43 * Constructor for Dispatcher 44 * 45 * @param CMSApplicationInterface $app The application instance 46 * @param Input $input The input instance 47 * 48 * @since 4.0.0 49 */ 50 public function __construct(CMSApplicationInterface $app, Input $input) 51 { 52 $this->app = $app; 53 $this->input = $input; 54 } 55 56 /** 57 * The application the dispatcher is working with. 58 * 59 * @return CMSApplicationInterface 60 * 61 * @since 4.0.0 62 */ 63 protected function getApplication(): CMSApplicationInterface 64 { 65 return $this->app; 66 } 67 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Wed Sep 7 05:41:13 2022 | Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer |