<p dir="auto">Dear Fabien,<br>
Thank you for uploading your slides on the symphony hack day in Berlin.<br>
I played around with the expression language and the got the error, that in the router the request is missing.</p>
<p dir="auto">I created a fork of symfony standard to reproduce the problem:<br>
<a href="https://github.com/sebastianblum/symfony-standard/tree/routing-condition">https://github.com/sebastianblum/symfony-standard/tree/routing-condition</a></p>
<p dir="auto">If I add the condition in the routing.yml</p>
<p dir="auto">condition: "request.getMethod() in ['GET', 'POST'] and request.headers.get('User-Agent') matches '/firefox/i'"<br>
see <a href="https://github.com/sebastianblum/symfony-standard/blob/routing-condition/src/Acme/DemoBundle/Resources/config/routing.yml">https://github.com/sebastianblum/symfony-standard/blob/routing-condition/src/Acme/DemoBundle/Resources/config/routing.yml</a></p>
<p dir="auto">then I got the following error:</p>
<p dir="auto">FatalErrorException: Error: Call to a member function getMethod() on a non-object<br>
See complete stack trace <a href="https://gist.github.com/sebastianblum/7417064">https://gist.github.com/sebastianblum/7417064</a></p>
<table role="table">
<thead>
<tr>
<th>Q</th>
<th>A</th>
</tr>
</thead>
<tbody>
<tr>
<td>Bug report?</td>
<td>yes</td>
</tr>
<tr>
<td>Feature request?</td>
<td>no</td>
</tr>
<tr>
<td>BC Break report?</td>
<td>no</td>
</tr>
<tr>
<td>Symfony version</td>
<td>all</td>
</tr>
</tbody>
</table>
<p dir="auto">When upgrading an app to Symfony 3.3 beta, an exception is triggered when using the <code class="notranslate">framework.trusted_proxies</code> option. I guess this BC break is OK because security, etc. But as you can see, the Console component has some issues when rendering nested exceptions:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/73419/25651937/f35c9a8a-2fe5-11e7-9e7e-42d833ded0a5.png"><img src="https://cloud.githubusercontent.com/assets/73419/25651937/f35c9a8a-2fe5-11e7-9e7e-42d833ded0a5.png" alt="nested_exceptions" style="max-width: 100%;"></a></p>