Skip to content

Commit f071db4

Browse files
authored
Merge pull request #2006 from beamop/patch-1
Update param_fetcher_listener.rst
2 parents 53b1679 + fd0e737 commit f071db4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Resources/doc/param_fetcher_listener.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ configured for the matched controller so that the user does not need to do this
5353
* @RequestParam(name="simpleEmail", requirements=@Constraints\Email)
5454
* @RequestParam(name="complexEmail", requirements={@Constraints\Email, @Constraints\NotEqualTo("[email protected]")})
5555
* You can use one or multiple Symfony Validator constraints for more complex requirements checking. The first
56-
* example above checks for a correctly formatted e-mail adress. The second example also ensures that it does not
56+
* example above checks for a correctly formatted e-mail address. The second example also ensures that it does not
5757
* matches some default example value.
5858
*
5959
* @RequestParam(name="search", requirements="[a-z]+", description="search")
@@ -113,7 +113,7 @@ configured for the matched controller so that the user does not need to do this
113113
114114
$dynamicQueryParam = new QueryParam();
115115
$dynamicQueryParam->name = "dynamic_query";
116-
$dynamicQueryParam->requirements="[a-z]+";
116+
$dynamicQueryParam->requirements = "[a-z]+";
117117
$paramFetcher->addParam($dynamicQueryParam);
118118
119119
$page = $paramFetcher->get('page');

0 commit comments

Comments
 (0)