Skip to content

Commit

Permalink
[#20] make sure form processor integration is only called when module…
Browse files Browse the repository at this point in the history
… istalled
  • Loading branch information
bjendres committed Nov 4, 2019
1 parent 4f3a077 commit 2e45c10
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion i3val.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
}

/**
Expand Down

0 comments on commit 2e45c10

Please sign in to comment.