CoreFiles by mySites.guru
provider.php44 lines, 1,200 bytes, from Joomla_5.4.9-Stable-Full_Package.zip
Raw History Compare with 5.4.8
md5
bf73b2d5ab25e1433a360aa1e58c1d28
sha1
0e7614d76e9a78241f8c06cf55e9a34fc32f0c14
sha256
5455b24405e733ed691506ae925f8c37f80f8ae2fd24e117e72f01ed9b036d6b
<?php

/**
 * @package     Joomla.Plugin
 * @subpackage  Quickicon.downloadkey
 *
 * @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\Downloadkey\Extension\Downloadkey;

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 Downloadkey(
                    (array) PluginHelper::getPlugin('quickicon', 'downloadkey')
                );
                $plugin->setApplication(Factory::getApplication());

                return $plugin;
            }
        );
    }
};

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