%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/bitrix/www/bitrix/modules/rest/lib/event/
Upload File :
Create Path :
Current File : /home/bitrix/www/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);
		}
	}
}

Zerion Mini Shell 1.0