CoreFiles by mySites.guru
BaseApplication.php58 lines, 2,063 bytes, from Joomla_5.0.0-alpha2-Alpha-Full_Package.zip
Raw History Compare with 5.0.0-alpha1
md5
c878d7f787167340724cd61fe3b8bb2a
sha1
cb7fd3027dd38edaebb028e9ebf84d8bfe9394db
sha256
d7f49028138c5e5d12be768071988681957f814a678ba257345eaa8dbe983f03
<?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('_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 6.0
 *              Application classes should directly be based on \Joomla\Application\AbstractApplication
 *              don't use this class anymore
 */
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 2 releases, Joomla 5.0.0-alpha1 to 5.0.0-alpha2. See them all, or every version of this file.