use Drupal\Core\DependencyInjection\ServiceModifierInterface;
use Drupal\Core\DependencyInjection\ContainerBuilder;
-class DrushServiceModfier implements ServiceModifierInterface
+class DrushServiceModifier implements ServiceModifierInterface
{
/**
* @inheritdoc
$container->register('drush.service.consolidationcommands', 'Drush\Command\ServiceCommandlist');
$container->addCompilerPass(new FindCommandsCompilerPass('drush.service.consolidationcommands', 'consolidation.commandhandler'));
}
+ /**
+ * Checks existing service definitions for the presence of modification.
+ *
+ * @param $container_definition
+ * Cached container definition
+ * @return bool
+ */
+ public function check($container_definition) {
+ return isset($container_definition['services']['drush.service.consolecommands']) &&
+ isset($container_definition['services']['drush.service.consolidationcommands']);
+ }
}