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
|
|||
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 |
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.