CoreFiles by mySites.guru
provider.php45 lines, 1,202 bytes, from Joomla_5.4.9-Stable-Full_Package.zip
Raw History Compare with 5.4.8
md5
3a99765ca36344bbfb32fda714ccebff
sha1
882b11bfbfcd16e0dd798136bf980fdcd02bfc69
sha256
c6c4334e9eccca0f25f760fa7835bc7c7c270cfd451d402f92fb41b65b1bf061
<?php

/**
 * @package     Joomla.Plugin
 * @subpackage  Extension.joomlaupdate
 *
 * @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 8 releases, Joomla 5.4.8-rc1 to 5.4.11. See them all, or every version of this file.