diff --git a/i3val.php b/i3val.php index aa23897..8548ff8 100644 --- a/i3val.php +++ b/i3val.php @@ -25,7 +25,9 @@ * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_container/ */ function i3val_civicrm_container(ContainerBuilder $container) { - $container->addCompilerPass(new Civi\I3val\ActionProvider\Action\RequestContactUpdate()); + if (class_exists("Civi\ActionProvider\Action\AbstractAction")) { + $container->addCompilerPass(new Civi\I3val\ActionProvider\Action\RequestContactUpdate()); + } } /**