<p dir="auto">I want to make a pattern on a route host requirement using a parameter like this</p>
<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="my_homepage:
    path:     /
    host:     {mydomain}
    defaults: { _controller: AcmeDemoBundle:Main:myHomepage }
    requirements:
        mydomain: %mydomain%"><pre class="notranslate"><span class="pl-ent">my_homepage</span>:
    <span class="pl-ent">path</span>:     <span class="pl-s">/</span>
    <span class="pl-ent">host</span>:     <span class="pl-s">{mydomain}</span>
    <span class="pl-ent">defaults</span>: <span class="pl-s">{ _controller: AcmeDemoBundle:Main:myHomepage }</span>
    <span class="pl-ent">requirements</span>:
        <span class="pl-ent">mydomain</span>: <span class="pl-s">%mydomain%</span></pre></div>
<p dir="auto">and parameter.yml :</p>
<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="mydomain: mydomain.com"><pre class="notranslate"><span class="pl-ent">mydomain</span>: <span class="pl-s">mydomain.com</span></pre></div>
<p dir="auto">Such a config (modified doc example) generate a Yaml parse error</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Malformed inline YAML string ({domain}) at line 64 (near &quot;host: {domain}&quot;).) "><pre lang="text" class="notranslate"><code class="notranslate">Malformed inline YAML string ({domain}) at line 64 (near "host: {domain}").) 
</code></pre></div>
<p dir="auto">Am i wrong ?</p>
<p dir="auto">Using quote like this don't solve the problem ,</p>
<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="my_homepage:
    path:     /
    host:     &quot;{mydomain}&quot;
    defaults: { _controller: AcmeDemoBundle:Main:myHomepage }
    requirements:
        mydomain: %mydomain%"><pre class="notranslate"><span class="pl-ent">my_homepage</span>:
    <span class="pl-ent">path</span>:     <span class="pl-s">/</span>
    <span class="pl-ent">host</span>:     <span class="pl-s"><span class="pl-pds">"</span>{mydomain}<span class="pl-pds">"</span></span>
    <span class="pl-ent">defaults</span>: <span class="pl-s">{ _controller: AcmeDemoBundle:Main:myHomepage }</span>
    <span class="pl-ent">requirements</span>:
        <span class="pl-ent">mydomain</span>: <span class="pl-s">%mydomain%</span></pre></div>
<p dir="auto">and generate another error,</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="An exception has been thrown during the rendering of a template 
(&quot;Some mandatory parameters are missing (&quot;mydomain&quot;) to generate a URL for route..."><pre lang="text" class="notranslate"><code class="notranslate">An exception has been thrown during the rendering of a template 
("Some mandatory parameters are missing ("mydomain") to generate a URL for route...
</code></pre></div>
<p dir="auto">Tried on different projects without good result....</p>
<table role="table">
<thead>
<tr>
<th>Q</th>
<th>A</th>
</tr>
</thead>
<tbody>
<tr>
<td>Bug report?</td>
<td>no</td>
</tr>
<tr>
<td>Feature request?</td>
<td>yes</td>
</tr>
<tr>
<td>BC Break report?</td>
<td>no</td>
</tr>
<tr>
<td>RFC?</td>
<td>no</td>
</tr>
<tr>
<td>Symfony version</td>
<td>any</td>
</tr>
</tbody>
</table>
<p dir="auto">The symfony phpunit bridge does not work with phpunit version 6 which is namespaced. So for example<br>
<a href="https://github.com/symfony/symfony/blob/master/src/Symfony/Bridge/PhpUnit/bootstrap.php#L16">https://github.com/symfony/symfony/blob/master/src/Symfony/Bridge/PhpUnit/bootstrap.php#L16</a> will just be skipped.</p>