<p dir="auto">There seems to be some path problems when specifying a custom Access Denied template and extending a layout. It seems this has been reported here...</p>
<p dir="auto"><a href="http://trac.symfony-project.org/ticket/9502" rel="nofollow">http://trac.symfony-project.org/ticket/9502</a></p>
<p dir="auto">More details can be seen in the comments of this blog article...</p>
<p dir="auto"><a href="http://www.michelsalib.com/2011/03/advance-customization-of-the-403-error-page-in-symfony2/" rel="nofollow">http://www.michelsalib.com/2011/03/advance-customization-of-the-403-error-page-in-symfony2/</a></p>
<p dir="auto">Has there been any resolution to this issue?</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>yes</td>
</tr>
<tr>
<td>Symfony version</td>
<td>4.1</td>
</tr>
</tbody>
</table>
<p dir="auto">It would be nice allow inject tagged services as <code class="notranslate">ServiceLocator</code> instead of <code class="notranslate">iterable</code>. For example we have set of report generators, all of them implements <code class="notranslate">ReportGenerator</code> interface. We have tagged them with tag <code class="notranslate">app.report_generator</code> using autoconfigure, but we require compiler pass for creating <code class="notranslate">ServiceLocator</code> with them.</p>