CoreFiles by mySites.guru
provider.php45 lines, 1,196 bytes, from Joomla_5.4.2-Stable-Full_Package.zip
Raw History Compare with 5.4.1
md5
98e01caadd5fe87e95e7724cd8e0ce45
sha1
bedc979ad1411cbcc8282a1383dc7aab8aa7ba8c
sha256
94233e96b87e98966881f5d82e256df3c7516d2a4fa78cdc5cd0cccdb797a993
<?php

/**
 * @package     Joomla.Plugin
 * @subpackage  Extension.joomla
 *
 * @copyright   (C) 2025 Open Source Matters, Inc. <https://www.joomla.org>
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

\defined('_JEXEC') or die;

use Joomla\CMS\Extension\PluginInterface;
use Joomla\CMS\Factory;
use Joomla\CMS\Plugin\PluginHelper;
use Joomla\DI\Container;
use Joomla\DI\ServiceProviderInterface;
use Joomla\Plugin\Extension\Joomlaupdate\Extension\Joomlaupdate;

return new class () implements ServiceProviderInterface {
    /**
     * Registers the service provider with a DI container.
     *
     * @param   Container  $container  The DI container.
     *
     * @return  void
     *
     * @since   5.3.0
     */
    public function register(Container $container)
    {
        $container->set(
            PluginInterface::class,
            function (Container $container) {
                $plugin = new Joomlaupdate(
                    (array) PluginHelper::getPlugin('extension', 'joomlaupdate')
                );

                $plugin->setApplication(Factory::getApplication());

                return $plugin;
            }
        );
    }
};

The same content is in 36 releases, Joomla 5.4.0-beta2 to 6.1.0-alpha3. See them all, or every version of this file.