CoreFiles by mySites.guru
HTMLRegistry.php44 lines, 884 bytes, from Joomla_4.0.0-alpha7-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha6
md5
abfb102b1197a6be4565ef7dd1d1d1e4
sha1
9dfa7d42e8766b9b1962b499588c417c4f7f25e1
sha256
cc9e6828af7b7e0addb29025e37ac516a86f44ff9c776bf149bbad382a5926a9
<?php
/**
 * Joomla! Content Management System
 *
 * @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\CMS\Service\Provider;

defined('JPATH_PLATFORM') or die;

use Joomla\CMS\HTML\Registry;
use Joomla\DI\Container;
use Joomla\DI\ServiceProviderInterface;

/**
 * Service provider for the HTML service registry
 *
 * @since  4.0.0
 */
class HTMLRegistry implements ServiceProviderInterface
{
	/**
	 * Registers the service provider with a DI container.
	 *
	 * @param   Container  $container  The DI container.
	 *
	 * @return  void
	 *
	 * @since   4.0.0
	 */
	public function register(Container $container)
	{
		$container->share(
				Registry::class,
				function (Container $container)
				{
					return new Registry;
				},
				true
			);
	}
}

The same content is in 4 releases, Joomla 4.0.0-alpha7 to 4.0.0-alpha10. See them all, or every version of this file.