CoreFiles by mySites.guru
provider.php44 lines, 1,220 bytes, from Joomla_5.4.0-Stable-Full_Package.zip
Raw History Compare with 5.3.4
md5
dbe8fa78b69429328f936b85920bb240
sha1
b2dd50afd46876039de0af383b27bd2ace6c9bdb
sha256
68ee48d178a7aa3925d517e4ad18e36727cf09608c5bf37f4ee55c19c8a2d14f
<?php

/**
 * @package     Joomla.Plugin
 * @subpackage  Quickicon.phpversioncheck
 *
 * @copyright   (C) 2022 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\Quickicon\PhpVersionCheck\Extension\PhpVersionCheck;

return new class () implements ServiceProviderInterface {
    /**
     * Registers the service provider with a DI container.
     *
     * @param   Container  $container  The DI container.
     *
     * @return  void
     *
     * @since   4.3.0
     */
    public function register(Container $container)
    {
        $container->set(
            PluginInterface::class,
            function (Container $container) {
                $plugin     = new PhpVersionCheck(
                    (array) PluginHelper::getPlugin('quickicon', 'phpversioncheck')
                );
                $plugin->setApplication(Factory::getApplication());

                return $plugin;
            }
        );
    }
};

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