CoreFiles by mySites.guru
InstallerComponent.php48 lines, 1,425 bytes, from Joomla_4.2.1-rc2-Release_Candidate-Full_Package.zip
Raw History Compare with 4.2.1-rc1
md5
86948e27b70674f9c07ad4db83433126
sha1
fb7365d6c80203ed4d4f1b8f7cbee4308ef0e41f
sha256
1c3390b6869e5e2e07658ce355ac3a7a7b274ae74cb0d454c937bab2c75124ad
<?php

/**
 * @package     Joomla.Administrator
 * @subpackage  com_installer
 *
 * @copyright   (C) 2018 Open Source Matters, Inc. <https://www.joomla.org>
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

namespace Joomla\Component\Installer\Administrator\Extension;

use Joomla\CMS\Extension\BootableExtensionInterface;
use Joomla\CMS\Extension\MVCComponent;
use Joomla\CMS\HTML\HTMLRegistryAwareTrait;
use Joomla\Component\Installer\Administrator\Service\HTML\Manage;
use Joomla\Component\Installer\Administrator\Service\HTML\Updatesites;
use Psr\Container\ContainerInterface;

/**
 * Component class for com_installer
 *
 * @since  4.0.0
 */
class InstallerComponent extends MVCComponent implements
    BootableExtensionInterface
{
    use HTMLRegistryAwareTrait;

    /**
     * Booting the extension. This is the function to set up the environment of the extension like
     * registering new class loaders, etc.
     *
     * If required, some initial set up can be done from services of the container, eg.
     * registering HTML services.
     *
     * @param   ContainerInterface  $container  The container
     *
     * @return  void
     *
     * @since   4.0.0
     */
    public function boot(ContainerInterface $container)
    {
        $this->getRegistry()->register('manage', new Manage());
        $this->getRegistry()->register('updatesites', new Updatesites());
    }
}

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.