Skip to content
Snippets Groups Projects

Issue #3338667: [PP-1] Add build test to test cweaganscomposer-patches end-to-end

4 files
+ 0
87
Compare changes
  • Side-by-side
  • Inline
Files
4
  • c52e9ab3
    Issue #3344689 by tedbow: Do not disable package_manager.validator.composer · c52e9ab3
    Ted Bowman authored
<?php
declare(strict_types = 1);
namespace Drupal\automatic_updates_test_disable_validators;
use Drupal\Core\DependencyInjection\ContainerBuilder;
use Drupal\Core\DependencyInjection\ServiceProviderBase;
use Drupal\Core\Site\Settings;
/**
* Disables specific validators in the service container.
*/
class AutomaticUpdatesTestDisableValidatorsServiceProvider extends ServiceProviderBase {
/**
* {@inheritdoc}
*/
public function alter(ContainerBuilder $container): void {
parent::alter($container);
$validators = Settings::get('automatic_updates_test_disable_validators', []);
array_walk($validators, [$container, 'removeDefinition']);
}
}
Loading