CoreFiles by mySites.guru
provider.php45 lines, 1,241 bytes, from Joomla_6.1.3-Stable-Full_Package.zip
Raw History Compare with 6.1.2
md5
ef564c7d651e9dab52e68902fa5bb8cb
sha1
b4215ed0603f1c53d2177ed62deec880a88ee015
sha256
355d843a64d0bb31de38581e5bc624d884b3fa2ce76c43b67471f58e2428b150
<?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,
            $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 14 releases, Joomla 6.1.3-rc1 to 6.3.0-alpha1. See them all, or every version of this file.