CoreFiles by mySites.guru
provider.php44 lines, 1,152 bytes, from Joomla_6.0.3-Stable-Full_Package.zip
Raw History Compare with 6.0.2
md5
d33804caf181b2d242ddd26665ca63db
sha1
e60f2910ae22d31932da31698dd3d67f8506e2a4
sha256
24bb15e2db5b02f3c75771c1d5e6e8daf1411e8fcaf9c53fb12fbe678f0c954c
<?php

/**
 * @package     Joomla.Plugin
 * @subpackage  Fields.note
 *
 * @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\Fields\Note\Extension\Note;

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

                return $plugin;
            }
        );
    }
};

The same content is in 4 releases, Joomla 6.0.3-rc1 to 6.1.0-alpha3. See them all, or every version of this file.