symfony/symfony-docs — pull request #1873 by chrismcmacken (2012-10-31 04:23:08+00:00)
Title: Clarify routing documentation on trailing optional parameters

As noted in issue https://github.com/symfony/symfony/issues/5869 the Routing documentation is a little unclear as to when routes with optional parameters at the end are matched.

```
my_test_homepage:
pattern: /hello/{name}
defaults: { _controller: MyTestBundle:Default:index, name: DefaultName }
```

The above route will only match on /hello and /hello/name, it will not match /hello/. I would like to clarify this in the documentation to avoid any confusion in the future.