mirror of
https://github.com/webmasterskaya/joomla-oauth-server.git
synced 2025-04-19 09:03:04 +03:00
32 lines
835 B
PHP
32 lines
835 B
PHP
<?php
|
|
/**
|
|
* @package Joomla.Administrator
|
|
* @subpackage com_oauthserver
|
|
*
|
|
* @copyright (c) 2024. Webmasterskaya. <https://webmasterskaya.xyz>
|
|
* @license MIT; see LICENSE.txt
|
|
**/
|
|
|
|
namespace Webmasterskaya\Component\OauthServer\Administrator\Event;
|
|
|
|
use Joomla\CMS\Event\AbstractEvent;
|
|
use Psr\Http\Message\ResponseInterface;
|
|
|
|
class ResolveTokenRequestEvent extends AbstractEvent
|
|
{
|
|
public function __construct(string $name, array $arguments = [])
|
|
{
|
|
if (!array_key_exists('response', $arguments))
|
|
{
|
|
throw new \BadMethodCallException("Argument 'response' is required for event $name");
|
|
}
|
|
|
|
parent::__construct($name, $arguments);
|
|
}
|
|
|
|
public function onSetResponse(ResponseInterface $response): ResponseInterface
|
|
{
|
|
return $response;
|
|
}
|
|
}
|