// overwrite with values specified in the decorator
$changes = $definition->getChanges(); if(isset($changes['class'])){ $def->setClass($definition->getClass()); } if(isset($changes['factory'])){
// Drupal services are public by default.
$definition->setPublic(true);
use Symfony\Component\DependencyInjection\Exception\InvalidArgumentException; use Symfony\Component\DependencyInjection\Exception\RuntimeException; use Symfony\Component\DependencyInjection\Reference; use Symfony\Contracts\Service\ResetInterface; use Symfony\Contracts\Service\ServiceSubscriberInterface;
// overwrite with values specified in the decorator
$changes = $definition->getChanges(); if(isset($changes['class'])){ $def->setClass($definition->getClass()); } if(isset($changes['factory'])){