diff -u b/config_readonly.services.yml b/config_readonly.services.yml --- b/config_readonly.services.yml +++ b/config_readonly.services.yml @@ -8 +8 @@ - arguments: ["@serialization.yaml", "@config.factory"] + arguments: ["@config.factory"] diff -u b/src/ConfigReadonlyExceptionsServiceProvider.php b/src/ConfigReadonlyExceptionsServiceProvider.php --- b/src/ConfigReadonlyExceptionsServiceProvider.php +++ b/src/ConfigReadonlyExceptionsServiceProvider.php @@ -20,13 +20,6 @@ protected $configFactory; /** - * Drupal\Component\Serialization\Yaml definition. - * - * @var \Drupal\Component\Serialization\Yaml - */ - protected $yaml; - - /** * An array to store the active config exceptions settings. * * @var array @@ -53,9 +46,8 @@ * @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory * The factory for configuration objects. */ - public function __construct(Yaml $serialization_yaml, ConfigFactoryInterface $config_factory) { + public function __construct(ConfigFactoryInterface $config_factory) { $this->configFactory = $config_factory; - $this->yaml = $serialization_yaml; $this->config = $this->configFactory->get('config_readonly.config_readonly_exceptions'); } @@ -142,7 +134,7 @@ if ($string = file_get_contents($ignore_file)) { $parsed = FALSE; try { - $parsed = $this->yaml::decode($string); + $parsed = Yaml::decode($string); } catch (InvalidDataTypeException $e) { $this->setError('Unable to parse the drush config ignore file.'); @@ -244,11 +236,8 @@ // Check for matches. $patterns = $this->getExceptionPatterns(); - dpm($patterns); - dpm($name); if ($patterns) { foreach ($patterns as $pattern) { - dpm($pattern . ' : ' . (preg_match($pattern, $name) ? 'yes' : 'no')); if (preg_match($pattern, $name)) { return TRUE; }