CoreFiles by mySites.guru
BaseApplication.php55 lines, 1,917 bytes, from Joomla_6.2.0-Stable-Full_Package.zip
Raw History Compare with 6.1.4
md5
5539c0aa403cf7ba9120167d36418921
sha1
f1d72fec8a4d959c5980beb915244efaac6a1ae8
sha256
25b8d07d677f08f3cc7f6627894657ff20229ff00b2a0469dd359becd1618159
<?php

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

namespace Joomla\CMS\Application;

use Joomla\Application\AbstractApplication;
use Joomla\Input\Input;
use Joomla\Registry\Registry;

// phpcs:disable PSR1.Files.SideEffects
\defined('_JEXEC') or die;
// phpcs:enable PSR1.Files.SideEffects

/**
 * Joomla Platform Base Application Class
 *
 * @property-read  Input  $input  The application input object
 *
 * @since       3.0.0
 *
 * @deprecated  4.3 will be removed in 7.0
 *              Application classes should directly be based on \Joomla\Application\AbstractApplication
 *              don't use this class anymore
 */
abstract class BaseApplication extends AbstractApplication
{
    use EventAware;
    use IdentityAware;

    /**
     * Class constructor.
     *
     * @param   ?Input     $input   An optional argument to provide dependency injection for the application's
     *                              input object.  If the argument is a Input object that object will become
     *                              the application's input object, otherwise a default input object is created.
     * @param   ?Registry  $config  An optional argument to provide dependency injection for the application's
     *                              config object.  If the argument is a Registry object that object will become
     *                              the application's config object, otherwise a default config object is created.
     *
     * @since   3.0.0
     */
    public function __construct(?Input $input = null, ?Registry $config = null)
    {
        $this->input  = $input instanceof Input ? $input : new Input();
        $this->config = $config instanceof Registry ? $config : new Registry();

        $this->initialise();
    }
}

The same content is in 9 releases, Joomla 6.2.0-alpha2 to 6.2.1-rc1. See them all, or every version of this file.