Passed
Push — master ( 8bd912...d93388 )
by Alan
06:58 queued 02:20
created

Routing/OperationMethodResolverInterface.php (1 issue)

1
<?php
2
3
/*
4
 * This file is part of the API Platform project.
5
 *
6
 * (c) Kévin Dunglas <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
declare(strict_types=1);
13
14
namespace ApiPlatform\Core\Bridge\Symfony\Routing;
15
16
use ApiPlatform\Core\Api\OperationMethodResolverInterface as BaseOperationMethodResolverInterface;
17
use ApiPlatform\Core\Exception\RuntimeException;
18
use Symfony\Component\Routing\Route;
19
20
/**
21
 * Resolves the HTTP method associated with an operation, extended for Symfony routing.
22
 *
23
 * @author Teoh Han Hui <[email protected]>
24
 *
25
 * @deprecated since API Platform 2.5, use the "method" attribute instead
26
 */
27
interface OperationMethodResolverInterface extends BaseOperationMethodResolverInterface
0 ignored issues
show
Deprecated Code introduced by
The interface ApiPlatform\Core\Api\Ope...MethodResolverInterface has been deprecated: since API Platform 2.5, use the "method" attribute instead ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

27
interface OperationMethodResolverInterface extends /** @scrutinizer ignore-deprecated */ BaseOperationMethodResolverInterface

This interface has been deprecated. The supplier of the interface has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the interface will be removed and what other interface to use instead.

Loading history...
28
{
29
    /**
30
     * @throws RuntimeException
31
     */
32
    public function getCollectionOperationRoute(string $resourceClass, string $operationName): Route;
33
34
    /**
35
     * @throws RuntimeException
36
     */
37
    public function getItemOperationRoute(string $resourceClass, string $operationName): Route;
38
}
39