CoreFiles by mySites.guru
provider.php45 lines, 1,235 bytes, from Joomla_6.1.0-Stable-Full_Package.zip
Raw History Compare with 6.0.4
md5
5eed5a268015f9f4dfb97e3ace5fd455
sha1
d14bc9dfcf3ebc56a17cf1beeaec15ea34518a59
sha256
28c5e168c8a81c0dcd08f9fc58b9b4c9c8dc776b66c3f2de0bb6766c8dd281b2
<?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,
            $container->lazy(Joomlaupdate::class, function (Container $container) {
                $plugin = new Joomlaupdate(
                    (array) PluginHelper::getPlugin('extension', 'joomlaupdate')
                );

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

                return $plugin;
            })
        );
    }
};

The same content is in 16 releases, Joomla 6.1.0-beta1 to 6.2.0-alpha3. See them all, or every version of this file.