minor #22378 CS fixes (chalasr)

This PR was merged into the 3.3-dev branch.

Discussion
----------

CS fixes

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | n/a
| License       | MIT
| Doc PR        | n/a

Commits
-------

e9ce2687de CS fixes
This commit is contained in:
Fabien Potencier 2017-04-11 08:25:15 -07:00
commit 44008e8a98
5 changed files with 3 additions and 8 deletions

View File

@ -25,8 +25,6 @@ class RemoveAbstractDefinitionsPass implements CompilerPassInterface
*/
public function process(ContainerBuilder $container)
{
$compiler = $container->getCompiler();
foreach ($container->getDefinitions() as $id => $definition) {
if ($definition->isAbstract()) {
$container->removeDefinition($id);

View File

@ -29,8 +29,6 @@ class RemovePrivateAliasesPass implements CompilerPassInterface
*/
public function process(ContainerBuilder $container)
{
$compiler = $container->getCompiler();
foreach ($container->getAliases() as $id => $alias) {
if ($alias->isPublic()) {
continue;

View File

@ -37,8 +37,7 @@ class RemoveUnusedDefinitionsPass implements RepeatablePassInterface
*/
public function process(ContainerBuilder $container)
{
$compiler = $container->getCompiler();
$graph = $compiler->getServiceReferenceGraph();
$graph = $container->getCompiler()->getServiceReferenceGraph();
$hasChanged = false;
foreach ($container->getDefinitions() as $id => $definition) {

View File

@ -24,7 +24,7 @@ use Symfony\Component\DependencyInjection\Reference;
use Symfony\Component\DependencyInjection\TypedReference;
/**
* Creates the service-locators required by ServiceArgumentValueResolver.
* Creates the service-locators required by ServiceValueResolver.
*
* @author Nicolas Grekas <p@tchwork.com>
*/

View File

@ -15,7 +15,7 @@ use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
use Symfony\Component\DependencyInjection\ContainerBuilder;
/**
* Removes empty service-locators registered for ServiceArgumentValueResolver.
* Removes empty service-locators registered for ServiceValueResolver.
*
* @author Nicolas Grekas <p@tchwork.com>
*/