CoreFiles by mySites.guru
TinyMCEProvider.php79 lines, 1,814 bytes, from Joomla_5.0.0-beta3-Beta-Full_Package.zip
Raw History Compare with 5.0.0-beta2
md5
eef03c08d6b34d84f7d60306b9060426
sha1
aae91260ac6f03d206691b2a854f87372d576197
sha256
49adb7bad4f33e0638ddd3d5e1ff534ad8534fe3ad39416e9a8c8e2bd6d2a267
<?php

/**
 * Joomla! Content Management System
 *
 * @copyright  (C) 2023 Open Source Matters, Inc. <https://www.joomla.org>
 * @license    GNU General Public License version 2 or later; see LICENSE.txt
 */

namespace Joomla\Plugin\Editors\TinyMCE\Provider;

use Joomla\CMS\Application\CMSApplicationInterface;
use Joomla\CMS\Editor\AbstractEditorProvider;
use Joomla\Database\DatabaseAwareTrait;
use Joomla\Database\DatabaseInterface;
use Joomla\Event\DispatcherInterface;
use Joomla\Plugin\Editors\TinyMCE\PluginTraits\DisplayTrait;
use Joomla\Registry\Registry;

/**
 * Editor provider class
 *
 * @since   5.0.0
 */
final class TinyMCEProvider extends AbstractEditorProvider
{
    use DisplayTrait;
    use DatabaseAwareTrait;

    /**
     * A Registry object holding the parameters for the plugin
     *
     * @var    Registry
     * @since  5.0.0
     */
    protected $params;

    /**
     * The application object
     *
     * @var    CMSApplicationInterface
     *
     * @since  5.0.0
     */
    protected $application;

    /**
     * Class constructor
     *
     * @param   Registry                 $params
     * @param   CMSApplicationInterface  $application
     * @param   DispatcherInterface      $dispatcher
     *
     * @since  5.0.0
     */
    public function __construct(
        Registry $params,
        CMSApplicationInterface $application,
        DispatcherInterface $dispatcher,
        DatabaseInterface $database
    ) {
        $this->params      = $params;
        $this->application = $application;

        $this->setDispatcher($dispatcher);
        $this->setDatabase($database);
    }

    /**
     * Return Editor name, CMD string.
     *
     * @return string
     * @since   5.0.0
     */
    public function getName(): string
    {
        return 'tinymce';
    }
}

The same content is in 2 releases, Joomla 5.0.0-beta2 to 5.0.0-beta3. See them all, or every version of this file.