Skip to content
Snippets Groups Projects

Issue #3508142: Fix installation error with JSON:API Extra in custom Drupal 11 profiles due to missing synthetic service `kernel`

Open Issue #3508142: Fix installation error with JSON:API Extra in custom Drupal 11 profiles due to missing synthetic service `kernel`
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -59,7 +59,7 @@ class ConfigSubscriber implements EventSubscriberInterface {
public function onSave(ConfigCrudEvent $event) {
$container = \Drupal::getContainer();
// It is problematic to rebuild the container during the installation.
$should_process = $container->getParameter('kernel.environment') !== 'install'
$should_process = (!defined('MAINTENANCE_MODE') || (defined('MAINTENANCE_MODE') && MAINTENANCE_MODE !== 'install'))
&& (!$container->hasParameter('jsonapi_extras.base_path_override_disabled') || !$container->getParameter('jsonapi_extras.base_path_override_disabled'))
&& $event->getConfig()->getName() === 'jsonapi_extras.settings';
if ($should_process) {
Loading