Skip to content

Commit 4a6e7e8

Browse files
authored
Add missing use statements
1 parent f29d629 commit 4a6e7e8

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

core/deprecations.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ You can also use this new `deprecationReason` attribute to deprecate specific [o
5656
<?php
5757
// api/src/Entity/Parchment.php
5858

59+
namespace App\Entity;
60+
61+
use ApiPlatform\Core\Annotation\ApiResource;
62+
5963
/**
6064
* @ApiResource(itemOperations={
6165
* "get"={"deprecation_reason"="Retrieve a Book instead"}
@@ -109,6 +113,8 @@ Thanks to the `sunset` attribute, API Platform makes it easy to set this header
109113

110114
namespace App\Entity;
111115

116+
use ApiPlatform\Core\Annotation\ApiResource;
117+
112118
/**
113119
* @ApiResource(
114120
* deprecationReason="Create a Book instead",
@@ -132,6 +138,8 @@ It's also possible to set the `Sunset` header only for a specific [operation](op
132138

133139
namespace App\Entity;
134140

141+
use ApiPlatform\Core\Annotation\ApiResource;
142+
135143
/**
136144
* @ApiResource(itemOperations={
137145
* "get"={

0 commit comments

Comments
 (0)