CRM-16373 - Bootstrap subsystems in more predictable order
[civicrm-core.git] / CRM / Contact / BAO / GroupContactCache.php
index 8bbaa3ff78d7f58837030bc022222d34ea648e64..74fbe77fe1eede7d2aa66b21d85149698a673cfa 100644 (file)
@@ -431,7 +431,7 @@ WHERE  id = %1
     }
 
     // grab a lock so other processes dont compete and do the same query
-    $lock = Civi::service('lockManager')->acquire("data.core.group.{$groupID}");
+    $lock = Civi::lockManager()->acquire("data.core.group.{$groupID}");
     if (!$lock->isAcquired()) {
       // this can cause inconsistent results since we dont know if the other process
       // will fill up the cache before our calling routine needs it.