8000 Merge branch '2.8' into 3.4 · symfony/symfony-docs@795febe · GitHub
[go: up one dir, main page]

Skip to content

Commit 795febe

Browse files
committed
Merge branch '2.8' into 3.4
* 2.8: stop using the deprecated @method annotation
2 parents 7ae9c95 + 8b4b418 commit 795febe

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

quick_tour/the_controller.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,6 @@ To restrict the formats supported by a given action, use the ``requirements``
152152
option of the ``@Route()`` annotation::
153153

154154
// src/AppBundle/Controller/DefaultController.php
155-
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
156155
use Symfony\Component\Routing\Annotation\Route;
157156

158157
// ...

routing/requirements.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ accomplished with the following route configuration:
211211
}
212212
213213
/**
214-
* @Route("/api/posts/{id}", methods="PUT")
214+
* @Route("/api/posts/{id}", methods={"PUT"})
215215
*/
216216
public function editAction($id)
217217
{

service_container/autowiring.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ Now, you can use the ``TwitterClient`` service immediately in a controller::
128128
class DefaultController extends Controller
129129
{
130130
/**
131-
* @Route("/tweet")
131+
* @Route("/tweet", methods={"POST"})
132132
*/
133133
public function tweetAction()
134134
{

0 commit comments

Comments
 (0)
0