CoreFiles by mySites.guru
provider.php45 lines, 1,192 bytes, from Joomla_5.4.7-Stable-Full_Package.zip
Raw History Compare with 5.4.6
md5
fe11942849688e3f1828604e975ffd6a
sha1
4d127f0c88e5d68c9bf4240f089ba5c7a826c4a4
sha256
6aed47fe7a4698d2c57201b4c40d73526301e7acd77b59e74d1a7e6ae1b66ebf
<?php

/**
 * @package     Joomla.Plugin
 * @subpackage  Schemaorg.jobposting
 *
 * @copyright   (C) 2023 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\Schemaorg\JobPosting\Extension\JobPosting;

return new class () implements ServiceProviderInterface {
    /**
     * Registers the service provider with a DI container.
     *
     * @param   Container  $container  The DI container.
     *
     * @return  void
     *
     * @since   5.0.0
     */
    public function register(Container $container)
    {
        $container->set(
            PluginInterface::class,
            function (Container $container) {
                $plugin = new JobPosting(
                    (array) PluginHelper::getPlugin('schemaorg', 'jobposting')
                );

                $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.