Skip to content

Commit 88f5707

Browse files
fix: no need for BookCondition as ApiResource (#419)
1 parent 315ea7b commit 88f5707

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

api/src/Enum/BookCondition.php

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,11 @@
44

55
namespace App\Enum;
66

7-
use ApiPlatform\Metadata\ApiResource;
8-
use ApiPlatform\Metadata\Get;
9-
use ApiPlatform\Metadata\GetCollection;
10-
117
/**
128
* A list of possible conditions for the item.
139
*
1410
* @see https://schema.org/OfferItemCondition
1511
*/
16-
#[ApiResource(
17-
shortName: 'BookCondition',
18-
types: ['https://schema.org/OfferItemCondition'],
19-
operations: [
20-
new GetCollection(provider: BookCondition::class . '::getCases'),
21-
new Get(provider: BookCondition::class . '::getCase'),
22-
],
23-
)]
2412
enum BookCondition: string
2513
{
2614
use EnumApiResourceTrait;

0 commit comments

Comments
 (0)