<p dir="auto">When defining a route like this:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/foo/{param}"><pre class="notranslate"><code class="notranslate">/foo/{param}
</code></pre></div>
<p dir="auto">with a default value for param, you can omit the param and Symfony will match a URL like <code class="notranslate">/foo</code>. But it won't match <code class="notranslate">/foo/</code>.</p>
<p dir="auto">Would it make sense to allow it? What are the consequences on BC?</p>
<p dir="auto">Or do we need to introduce a special syntax for optional parameters:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/foo/{?param}

/foo{/?param}"><pre class="notranslate"><code class="notranslate">/foo/{?param}

/foo{/?param}
</code></pre></div>
<p dir="auto">see fabpot/Silex#485</p>
<p dir="auto">hey,</p>
<p dir="auto">i stumbled upon this field option and think it's not the right way to solve it</p>
<p dir="auto"><a href="http://symfony.com/doc/current/reference/forms/types/text.html#read-only" rel="nofollow">http://symfony.com/doc/current/reference/forms/types/text.html#read-only</a></p>
<p dir="auto">the docs say, that the read_only parameter renders the field with a disabled attribute. even if disabled is the favored method of setting the field "not-editable" the parameter should be called disabled because there actually is a readonly attribute since html4 and it allows some kind of interaction that a disabled field does not.</p>
<p dir="auto">in my case i have a text input that is filled with a value by a colorpicker. the color picker is triggered by the user clicking on that field. in contrast to a readonly input a disabled input is not clickable.</p>
<p dir="auto">this is not a blocker as the readonly attribute can still be created by adding it  to the attr parameter. i guess its still confusing though.</p>
<p dir="auto">kind regards (and thanks for creating this)</p>
<p dir="auto">konrad</p>