<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>RFC?</td>
<td>no</td>
</tr>
<tr>
<td>Symfony version</td>
<td>3.4-BETA</td>
</tr>
</tbody>
</table>
<p dir="auto">When decorating <code class="notranslate">routing.loader</code> in a compiler pass I get the following deprecation error when the container is built:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="User Deprecated: The &quot;routing.loader&quot; service is private, getting it from the container is deprecated since Symfony 3.2 and will fail in 4.0. You should either make the service public, or stop using the container directly and use dependency injection instead."><pre class="notranslate"><code class="notranslate">User Deprecated: The "routing.loader" service is private, getting it from the container is deprecated since Symfony 3.2 and will fail in 4.0. You should either make the service public, or stop using the container directly and use dependency injection instead.
</code></pre></div>
<p dir="auto">I can't figure out why this is happening.</p>
<p dir="auto">Reference: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="268496084" data-permission-text="Title is private" data-url="https://github.com/umpirsky/UmpirskyI18nRoutingBundle/issues/17" data-hovercard-type="issue" data-hovercard-url="/umpirsky/UmpirskyI18nRoutingBundle/issues/17/hovercard" href="https://github.com/umpirsky/UmpirskyI18nRoutingBundle/issues/17">umpirsky/UmpirskyI18nRoutingBundle#17</a><br>
CompilerPass: <a href="https://github.com/umpirsky/UmpirskyI18nRoutingBundle/blob/a69bd4dcc901c3459aba20f8e586613a5758d05b/src/DependencyInjection/Compiler/OverrideRoutingCompilerPass.php">https://github.com/umpirsky/UmpirskyI18nRoutingBundle/blob/a69bd4dcc901c3459aba20f8e586613a5758d05b/src/DependencyInjection/Compiler/OverrideRoutingCompilerPass.php</a></p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/127811/32618918-0d6df242-c547-11e7-94d2-30562215dee0.png"><img src="https://user-images.githubusercontent.com/127811/32618918-0d6df242-c547-11e7-94d2-30562215dee0.png" alt="profiler" style="max-width: 100%;"></a></p>
<table role="table">
<thead>
<tr>
<th>Q</th>
<th>A</th>
</tr>
</thead>
<tbody>
<tr>
<td>Bug report?</td>
<td>yes/no</td>
</tr>
<tr>
<td>Feature request?</td>
<td>yes/no</td>
</tr>
<tr>
<td>BC Break report?</td>
<td>yes/no</td>
</tr>
<tr>
<td>RFC?</td>
<td>yes/no</td>
</tr>
<tr>
<td>Symfony version</td>
<td>x.y.z</td>
</tr>
</tbody>
</table>