Your IP : 18.118.7.190


Current Path : /home/bitrix/ext_www/klimatlend.ua/bitrix/modules/rest/lib/event/
Upload File :
Current File : /home/bitrix/ext_www/klimatlend.ua/bitrix/modules/rest/lib/event/provideroauth.php

<?php
namespace Bitrix\Rest\Event;

use Bitrix\Rest\OAuthService;

class ProviderOAuth implements ProviderInterface
{
	/**
	 * @var ProviderOAuth
	 */
	protected static $instance = null;

	public static function instance()
	{
		if(static::$instance === null)
		{
			static::$instance = new static();
		}

		return static::$instance;
	}

	public function send(array $queryData)
	{
		if(OAuthService::getEngine()->isRegistered())
		{
			OAuthService::getEngine()->getClient()->sendEvent($queryData);
		}
	}
}