Skip to content

Commit

Permalink
ID has to be a reference
Browse files Browse the repository at this point in the history
  • Loading branch information
Luehrsen committed Nov 25, 2023
1 parent 80777ec commit 8e040f1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion DependencyInjection/Compiler/CustomProcessorPass.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Reference;

/**
* Compiler Pass to identify and register custom processors.
Expand Down Expand Up @@ -46,7 +47,7 @@ public function process(ContainerBuilder $container): void
}
}

$definition->addMethodCall('addProcessor', [$id, $before]);
$definition->addMethodCall('addProcessor', [new Reference($id), $before]);
}
}
}

0 comments on commit 8e040f1

Please sign in to comment.