Files
magento2/app/code/Magento/GraphQl/Controller/HttpRequestValidatorInterface.php
2021-04-13 13:52:42 +03:00

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;
}