Completed
Push — master ( ac8ec4...1a57ac )
by Kévin
04:37 queued 11s
created

src/Api/OperationAwareFormatsProviderInterface.php (1 issue)

Severity
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\Api;
15
16
/**
17
 * Extracts formats for a given operation according to the retrieved Metadata.
18
 *
19
 * @author Anthony GRASSIOT <[email protected]>
20
 *
21
 * @deprecated since API Platform 2.5, use the "formats" attribute instead
22
 */
23
interface OperationAwareFormatsProviderInterface extends FormatsProviderInterface
0 ignored issues
show
Deprecated Code introduced by
The interface ApiPlatform\Core\Api\FormatsProviderInterface has been deprecated: since API Platform 2.5, use the "formats" 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

23
interface OperationAwareFormatsProviderInterface extends /** @scrutinizer ignore-deprecated */ FormatsProviderInterface

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...
24
{
25
    /**
26
     * Finds formats for an operation.
27
     */
28
    public function getFormatsFromOperation(string $resourceClass, string $operationName, string $operationType): array;
29
}
30