This commit is contained in:
Robin Chalas 2017-04-11 17:15:30 +02:00
parent f04c0b5f04
commit e9ce2687de
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>
*/