<p dir="auto"><strong>Description</strong><br>
Currently when a service is inlined in anoter service you get a log message like</p>
<blockquote>
<p dir="auto">Inlined service "abc" to "xyz".</p>
</blockquote>
<p dir="auto">And at the same time you also get a log message that the service got removed</p>
<blockquote>
<p dir="auto">Removed service "abc"; reason: unused.</p>
</blockquote>
<p dir="auto">IMO when it a service is inlined, it should not also log that it got removed.<br>
This way you can actually find services that are unused. Currently you get alot of duplicate messages for inlined services. And the reason "unused" is even more irritating as it is not really unused, it was just inlined because it's only used once.</p>
<p dir="auto">Another improvement can be made for the autowire pass. When an object argument has a default value that cannot be wired, it does not error but logs a message like</p>
<blockquote>
<p dir="auto">Symfony\Component\DependencyInjection\Compiler\AutowirePass<br>
Cannot autowire service "Ekino\NewRelicBundle\Listener\ResponseListener": argument "$newRelicTwigExtension" of method "__construct()" references class "Ekino\NewRelicBundle\Twig\NewRelicExtension" but no such service exists.</p>
</blockquote>
<p dir="auto">This is good. But for consistency and debugging purposes, it would be good if a scalar argument that has a default value that wasn't wired explicitly, also triggers a log. You might have just forgotten to wire it with a parameter for example and that is hard to spot.</p>
<p dir="auto">Hi,<br>
I am running Symfony 2.0.5 on Windows 7 with PHP version 5.3.8.<br>
When I am calling cache:clear on the console tool, I get this error sometimes (I do not know why):</p>
<blockquote>
<p dir="auto">C:\projects\cnc_agency\trunk&gt;php app\console cache:clear<br>
Clearing the cache for the dev environment with debug true</p>
<p dir="auto">[ErrorException]<br>
Warning: rmdir(C:\projects\cnc_agency\trunk\app/cache/dev_old\twig\f8): Directory not empty in C:\projects\cnc_agency\trunk\vendor\symfony\src\Symfony\Component\HttpKernel\Util\Filesystem.php line 98</p>
<p dir="auto">cache:clear [--no-warmup]</p>
</blockquote>
<p dir="auto">When I remove the cache dir, it works again. But this is annoying a little bit.</p>