mirror of
https://github.com/bdnugget/magento2.git
synced 2026-11-07 09:17:35 +00:00
29 lines
649 B
PHP
29 lines
649 B
PHP
<?php
|
|
/**
|
|
* Copyright © Magento, Inc. All rights reserved.
|
|
* See COPYING.txt for license details.
|
|
*/
|
|
declare(strict_types=1);
|
|
|
|
namespace Magento\GraphQl\Controller;
|
|
|
|
use Magento\Framework\App\HttpRequestInterface;
|
|
use Magento\Framework\GraphQl\Exception\GraphQlInputException;
|
|
|
|
/**
|
|
* Use this interface to implement a validator for a Graphql HTTP requests
|
|
*
|
|
* @api
|
|
*/
|
|
interface HttpRequestValidatorInterface
|
|
{
|
|
/**
|
|
* Perform validation of request
|
|
*
|
|
* @param HttpRequestInterface $request
|
|
* @return void
|
|
* @throws GraphQlInputException
|
|
*/
|
|
public function validate(HttpRequestInterface $request) : void;
|
|
}
|