CoreFiles by mySites.guru
Http.php48 lines, 1,188 bytes, from Joomla_5.1.0-beta1-Beta-Full_Package.zip
Raw History Compare with 5.0.0-beta3
md5
236ac3c572de6889824101dca34912d9
sha1
56f37fc47464146b3a0977d6cbe58de513ad7987
sha256
b6a7cf951b3321b1b4d43dcb36c61b89300a636e6d397794de7f9528f60c907b
<?php

/**
 * Joomla! Content Management System
 *
 * @copyright   (C) 2024 Open Source Matters, Inc. <https://www.joomla.org>
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

namespace Joomla\CMS\Service\Provider;

use Joomla\CMS\Http\HttpFactoryInterface;
use Joomla\DI\Container;
use Joomla\DI\ServiceProviderInterface;
use Joomla\Http\HttpFactory;

// phpcs:disable PSR1.Files.SideEffects
\defined('_JEXEC') or die;
// phpcs:enable PSR1.Files.SideEffects

/**
 * Service provider for the application's PSR-3 logger dependency
 *
 * @since  5.1.0
 */
class Http implements ServiceProviderInterface
{
    /**
     * Registers the service provider with a DI container.
     *
     * @param   Container  $container  The DI container.
     *
     * @return  void
     *
     * @since   5.1.0
     */
    public function register(Container $container)
    {
        $container->alias('http.factory', HttpFactoryInterface::class)
            ->share(
                HttpFactoryInterface::class,
                function (Container $container) {
                    return new HttpFactory();
                },
                false
            );
    }
}

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