CoreFiles by mySites.guru
InstallerComponent.php49 lines, 1,402 bytes, from Joomla_4.0.0-alpha9-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha8
md5
c472f4f0b971cd586ede2aaedb937b04
sha1
f989450408ff90c36ab0c924aba226af772a0992
sha256
1e52f7343dd7281bdfe23857612cfb75d5274ab0dbef399a786cdeec0103ad9e
<?php
/**
 * @package     Joomla.Administrator
 * @subpackage  com_installer
 *
 * @copyright   Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

namespace Joomla\Component\Installer\Administrator\Extension;

defined('JPATH_PLATFORM') or die;

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 6 releases, Joomla 4.0.0-alpha7 to 4.0.0-alpha12. See them all, or every version of this file.