Skip to content

Commit 6bcb435

Browse files
committed
Merge pull request #938 from ahsanity/patch-1
Minor update: Ordering the comments properly over the relevant code line...
2 parents fbb3c6d + a893e78 commit 6bcb435

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Resources/doc/3-listener-support.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -538,16 +538,16 @@ configured for the matched controller so that the user does not need to do this
538538
*
539539
* @QueryParam(name="count", requirements="\d+", strict=true, nullable=true, description="Item count limit")
540540
*
541+
* Will check if a blank value, e.g an empty string is passed and if so, it will set to the default of asc.
542+
*
543+
* @QueryParam(name="sort", requirements="(asc|desc)+", allowBlank=false, default="asc" description="Sort direction")
544+
*
541545
* Will look for a firstname request parameters, ie. firstname=foo in POST data.
542546
* If not passed it will error out when read out of the ParamFetcher since RequestParam defaults to strict=true
543547
* If passed but doesn't match the requirement "[a-z]+" it will also error out (400 Bad Request)
544548
* Note that if the value matches the default then no validation is run.
545549
* So make sure the default value really matches your expectations.
546550
*
547-
* @QueryParam(name="sort", requirements="(asc|desc)+", allowBlank=false, default="asc" description="Sort direction")
548-
*
549-
* Will check if a blank value, e.g an empty string is passed and if so, it will set to the default of asc.
550-
*
551551
* @RequestParam(name="firstname", requirements="[a-z]+", description="Firstname.")
552552
*
553553
* If you want to work with array: ie. ?ids[]=1&ids[]=2&ids[]=1337, use:

0 commit comments

Comments
 (0)