From 34de06a0e32020fcf50e10736c9ef46c8d4b8abb Mon Sep 17 00:00:00 2001 From: Alexis Lefebvre Date: Fri, 29 Jul 2016 17:51:24 +0200 Subject: [PATCH 1/2] Routing: add explanation for the "_fragment" parameter --- routing.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/routing.rst b/routing.rst index 6f58990896a..9b3030ee871 100644 --- a/routing.rst +++ b/routing.rst @@ -475,6 +475,10 @@ that are special: each adds a unique piece of functionality inside your applicat ``_format`` Used to set the request format (:ref:`read more `). +``_fragment`` + Used to set the fragment identifier, the optional last part of a URL that + starts with a ``#`` character and is used to identify a portion of a document. + ``_locale`` Used to set the locale on the request (:ref:`read more `). From 0791e48ad8f511e2821b7892b03f5b5d6e867698 Mon Sep 17 00:00:00 2001 From: Alexis Lefebvre Date: Thu, 4 Aug 2016 14:39:39 +0200 Subject: [PATCH 2/2] Routing: add "versionadded" for the "_fragment" parameter --- routing.rst | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/routing.rst b/routing.rst index 9b3030ee871..6faab2a5441 100644 --- a/routing.rst +++ b/routing.rst @@ -465,7 +465,7 @@ Special Routing Parameters ~~~~~~~~~~~~~~~~~~~~~~~~~~ As you've seen, each routing parameter or default value is eventually available -as an argument in the controller method. Additionally, there are three parameters +as an argument in the controller method. Additionally, there are four parameters that are special: each adds a unique piece of functionality inside your application: ``_controller`` @@ -476,6 +476,10 @@ that are special: each adds a unique piece of functionality inside your applicat Used to set the request format (:ref:`read more `). ``_fragment`` + + .. versionadded:: 3.2 + The ``_fragment`` parameter was introduced in Symfony 3.2. + Used to set the fragment identifier, the optional last part of a URL that starts with a ``#`` character and is used to identify a portion of a document.