Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 25607ad

Browse files
committed
Merge branch '4.1'
* 4.1: stop using the deprecated @method annotation
2 parents 3e215a9 + e091d3c commit 25607ad

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

routing/requirements.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ accomplished with the following route configuration:
207207
}
208208
209209
/**
210-
* @Route("/api/posts/{id}", methods="PUT")
210+
* @Route("/api/posts/{id}", methods={"PUT"})
211211
*/
212212
public function edit($id)
213213
{

service_container/autowiring.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ Now, you can use the ``TwitterClient`` service immediately in a controller::
131131
class DefaultController extends AbstractController
132132
{
133133
/**
134-
* @Route("/tweet")
134+
* @Route("/tweet", methods={"POST"})
135135
*/
136136
public function tweet()
137137
{

0 commit comments

Comments
 (0)