CoreFiles by mySites.guru
PrivacyComponent.php46 lines, 1,245 bytes, from Joomla_4.2.0-alpha2-Alpha-Full_Package.zip
Raw History Compare with 4.2.0-alpha1
md5
72a6f27a21ca9223cd04101e31e32d8f
sha1
3af5ac6af3539a50c93197a731bba1f7ceb14b8c
sha256
9fd8dc7359e9abfc274ca7624b0844a82469b9ff501077c1478bb1f51190c683
<?php
/**
 * @package     Joomla.Administrator
 * @subpackage  com_privacy
 *
 * @copyright   (C) 2019 Open Source Matters, Inc. <https://www.joomla.org>
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

namespace Joomla\Component\Privacy\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\Privacy\Administrator\Service\HTML\Privacy;
use Psr\Container\ContainerInterface;

/**
 * Component class for com_privacy
 *
 * @since  4.0.0
 */
class PrivacyComponent 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('privacy', new Privacy);
	}
}

The same content is in 41 releases, Joomla 4.0.0-beta6 to 4.2.0-alpha2. See them all, or every version of this file.