CoreFiles by mySites.guru
BaseApplication.php55 lines, 1,976 bytes, from Joomla_4.3.0-beta1-Beta-Full_Package.zip
Raw History Compare with 4.2.0-beta3
md5
dcfb4a00f1aa85ec8470fa92454002fb
sha1
2ac826a0d255ac26e3dfa10beea54e2562c0b766
sha256
98b789498c4feb3a71c7cadccb64b53ed11988a5d2b9778bd4d3950326cedeb0
<?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\CMS\Input\Input;
use Joomla\Event\DispatcherAwareInterface;
use Joomla\Event\DispatcherAwareTrait;
use Joomla\Registry\Registry;

// phpcs:disable PSR1.Files.SideEffects
\defined('JPATH_PLATFORM') 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  5.0  Application classes should be based on \Joomla\Application\AbstractApplication
 */
abstract class BaseApplication extends AbstractApplication implements DispatcherAwareInterface
{
    use DispatcherAwareTrait;
    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 \JInput 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 6 releases, Joomla 4.3.0-beta1 to 4.3.0-rc2. See them all, or every version of this file.