CoreFiles by mySites.guru
Dispatcher.php63 lines, 1,321 bytes, from Joomla_4.2.0-Stable-Full_Package.zip
Raw History Compare with 4.1.5
md5
b032e991cb5653bb2c62cd3b78f62c24
sha1
92e5c5ab7c4c2f651ab76ac4af8c46f793eae296
sha256
9e68723ad16cc0a2dd0f5cd3251c21140e45eccd8841ee0854468a3f8d69304a
<?php

/**
 * Joomla! Content Management System
 *
 * @copyright  (C) 2005 Open Source Matters, Inc. <https://www.joomla.org>
 * @license    GNU General Public License version 2 or later; see LICENSE
 */

namespace Joomla\CMS\Dispatcher;

use Joomla\CMS\Application\CMSApplicationInterface;
use Joomla\Input\Input;

/**
 * Base class for a Joomla Dispatcher
 *
 * @since  4.0.0
 */
abstract class Dispatcher implements DispatcherInterface
{
    /**
     * The application instance
     *
     * @var    CMSApplicationInterface
     * @since  4.0.0
     */
    protected $app;

    /**
     * The input instance
     *
     * @var    Input
     * @since  4.0.0
     */
    protected $input;

    /**
     * Constructor for Dispatcher
     *
     * @param   CMSApplicationInterface  $app    The application instance
     * @param   Input                    $input  The input instance
     *
     * @since   4.0.0
     */
    public function __construct(CMSApplicationInterface $app, Input $input)
    {
        $this->app   = $app;
        $this->input = $input;
    }

    /**
     * The application the dispatcher is working with.
     *
     * @return  CMSApplicationInterface
     *
     * @since   4.0.0
     */
    protected function getApplication(): CMSApplicationInterface
    {
        return $this->app;
    }
}

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.