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

Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
[Routing] Update default attributes example for annotations
  • Loading branch information
chalasr committed Jan 23, 2017
commit e11efe2114263f1253e22c5c87e5fd9299f415d8
2 changes: 1 addition & 1 deletion routing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ So how can you make ``blog_list`` once again match when the user visits
class BlogController extends Controller
{
/**
* @Route("/blog/{page}", name="blog_list", requirements={"page": "\d+"})
* @Route("/blog/{page}", name="blog_list", defaults={"page": 1}, requirements={"page": "\d+"})
*/
public function listAction($page = 1)
{
Expand Down