class OverrideServiceCompilerPass implements CompilerPassInterface
{
public function process(ContainerBuilder $container): void
{
$this->overrideECodeItemsInOrder($container);
}
private function overrideECodeItemsInOrder(ContainerBuilder $container): void
{
if ($container->hasDefinition(ECodeItemsInOrder::class)) {
$definition = $container->getDefinition(ECodeItemsInOrder::class);
$definition->setClass(MshECodeItemsInOrder::class);
}
}
}