CoreFiles by mySites.guru
BaseApplication.php51 lines, 1,860 bytes, from Joomla_4.2.0-Stable-Full_Package.zip
Raw History Compare with 4.1.5
md5
4481abdc78bbed9ca9aabd65e14ea55f
sha1
3b557e0b9d3b63f5900e77f77ad32a0bfee1c0c3
sha256
be51de3e6a652b68eff352334deb0a70cf4cf3b8dda9bf3c32cc00000180e1d4
<?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;

/**
 * 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 5 releases, Joomla 4.2.0-beta3 to 4.2.1-rc2. See them all, or every version of this file.