CoreFiles by mySites.guru
InstallerComponent.php49 lines, 1,402 bytes, from Joomla_4.0.0-alpha6-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha5
md5
9ec173a702041e43d9a9d92fc77c6e9c
sha1
d729c95986e6f7eea75486793cf932d10173841d
sha256
da335e5aa1c216df072bfd5470457e5554535062a7dceff19f2f4a23244fbcd5
<?php
/**
 * @package     Joomla.Administrator
 * @subpackage  com_installer
 *
 * @copyright   Copyright (C) 2005 - 2018 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 2 releases, Joomla 4.0.0-alpha5 to 4.0.0-alpha6. See them all, or every version of this file.