Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 795febe

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

File tree

Expand file treeCollapse file tree

3 files changed

+2
-3
lines changed
Filter options
Expand file treeCollapse file tree

3 files changed

+2
-3
lines changed

‎quick_tour/the_controller.rst

Copy file name to clipboardExpand all lines: quick_tour/the_controller.rst
-1Lines 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

Copy file name to clipboardExpand all lines: routing/requirements.rst
+1-1Lines 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

Copy file name to clipboardExpand all lines: service_container/autowiring.rst
+1-1Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.