CoreFiles by mySites.guru
HTMLRegistry.php44 lines, 878 bytes, from Joomla_4.0.0-alpha12-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha11
md5
4004ae369ca10ef0f94d4488275346a1
sha1
88c357eaa87e9f9efe39212420389a8c405e0149
sha256
54f1496572b1b6230ffeea4ef63017ed7475d960cee089694a16de4d9a0b54d9
<?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
		);
	}
}

No other release has this exact content. See every version of this file.