Skip to content
This repository was archived by the owner on Nov 19, 2019. It is now read-only.

Commit 56c9bc9

Browse files
committed
fix(router): Fix deprecation notice for using @method annotation
1 parent c078bea commit 56c9bc9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Action/Image/ImageUploadAction.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
use App\Entity\Image;
88
use App\Security\UserProvider\UserEntityProvider;
99
use Ramsey\Uuid\Uuid;
10-
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method;
1110
use Symfony\Component\HttpFoundation\File\UploadedFile;
1211
use Symfony\Component\HttpFoundation\Request;
1312
use Symfony\Component\HttpKernel\Exception\HttpException;
@@ -31,8 +30,8 @@ public function __construct(UserEntityProvider $userEntityProvider)
3130
* "_api_resource_class": Image::class,
3231
* "_api_collection_operation_name": "upload"
3332
* },
33+
* methods={"POST"}
3434
* )
35-
* @Method("POST")
3635
*
3736
* @param \Symfony\Component\HttpFoundation\Request $request
3837
* @param \Symfony\Component\Security\Core\User\UserInterface $user

0 commit comments

Comments
 (0)