Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
config_sync
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
config_sync
Merge requests
!20
Issue
#3460359
by joegraduate: Remove update workaround added in 8.x-2.0-beta4 from 3.0.x branch
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Issue
#3460359
by joegraduate: Remove update workaround added in 8.x-2.0-beta4 from 3.0.x branch
issue/config_sync-3460359:3460359-remove-update-workaround
into
3.0.x
Overview
0
Commits
2
Pipelines
3
Changes
1
Merged
Joe Parsons
requested to merge
issue/config_sync-3460359:3460359-remove-update-workaround
into
3.0.x
10 months ago
Overview
0
Commits
2
Pipelines
3
Changes
1
Expand
Closes
#3460359
0
0
Merge request reports
Compare
3.0.x
version 1
9538b5c8
10 months ago
3.0.x (base)
and
latest version
latest version
379c51dd
2 commits,
10 months ago
version 1
9538b5c8
1 commit,
10 months ago
1 file
+
0
−
38
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
src/ConfigSyncServiceProvider.php deleted
100644 → 0
+
0
−
38
Options
<?php
namespace
Drupal\config_sync
;
use
Drupal\Core\DependencyInjection\ContainerBuilder
;
use
Drupal\Core\DependencyInjection\ServiceProviderBase
;
use
Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException
;
/**
* ServiceProvider for config_sync services.
*/
class
ConfigSyncServiceProvider
extends
ServiceProviderBase
{
/**
* {@inheritdoc}
*/
public
function
alter
(
ContainerBuilder
$container
)
{
// This service was introduced as a new dependency in config_sync
// 8.x-2.0-beta2.
// @see https://www.drupal.org/project/drupal/issues/2863986
try
{
$container
->
getDefinition
(
'plugin.manager.config_normalizer'
);
}
// If the service is not available, remove its dependent services. A
// Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException
// would prevent installing the new module dependency.
catch
(
ServiceNotFoundException
$exception
)
{
// Requires 'plugin.manager.config_normalizer'.
$container
->
removeDefinition
(
'config_sync.lister'
);
// Both require 'config_sync.lister'.
$container
->
removeDefinition
(
'config_sync.snapshotter'
);
$container
->
removeDefinition
(
'config_sync.commands'
);
// Requires config_sync.snapshotter.
$container
->
removeDefinition
(
'config_sync_snapshot_subscriber'
);
}
}
}
Loading