Skip to content

Commit 6b91966

Browse files
committed
Avoiding error on module install
1 parent 4409922 commit 6b91966

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Os2webLoggingServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public function alter(ContainerBuilder $container) {
1919
// Skipping calls when container is not ready.
2020
// We need the container to be reader in order to fetch module
2121
// configuration.
22-
if (!\Drupal::hasContainer()) {
22+
if (!\Drupal::hasContainer() || !\Drupal::hasService('config.factory')) {
2323
return;
2424
}
2525

0 commit comments

Comments
 (0)