CoreFiles by mySites.guru
messages.php43 lines, 919 bytes, from Joomla_4.0.0-alpha12-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha11
md5
a386f7817d5d6fae39f5be9c6e8c0a00
sha1
4b96fd05d3aa18547fa713519ad701e142dca76c
sha256
571b4a39774f988cde6bf6c706aeab6bfbc8c33d3084249efcfb88956e0c74ad
<?php
/**
 * @package     Joomla.Plugin
 * @subpackage  Webservices.Messages
 *
 * @copyright   Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;

use Joomla\CMS\Plugin\CMSPlugin;
use Joomla\CMS\Router\ApiRouter;

/**
 * Web Services adapter for com_messages.
 *
 * @since  4.0.0
 */
class PlgWebservicesMessages extends CMSPlugin
{
	/**
	 * Load the language file on instantiation.
	 *
	 * @var    boolean
	 * @since  4.0.0
	 */
	protected $autoloadLanguage = true;

	/**
	 * Registers com_messages's API's routes in the application
	 *
	 * @param   ApiRouter  &$router  The API Routing object
	 *
	 * @return  void
	 *
	 * @since   4.0.0
	 */
	public function onBeforeApiRoute(&$router)
	{
		$router->createCRUDRoutes('v1/messages', 'messages', ['component' => 'com_messages']);
	}
}

No other release has this exact content. See every version of this file.