yiisoft/yii2 — pull request #3713 by thiagotalma (2014-06-06 00:00:32+00:00)
Title: Allow rules with optional parameters

Today UrlRule not allow to create rules with optional parameters. Often they can be useful.

As the method escapes the parentheses, I thought of making the optional parameters using brackets. A rule might look like this:

```PHP
'urlManager' => [
'rules' => [
'agenda/{/p/}?{/a/}?' => 'agenda/init',
]
],
```