projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #3617 from eileenmcnaughton/CRM-14946
[civicrm-core.git]
/
CRM
/
Queue
/
ErrorPolicy.php
diff --git
a/CRM/Queue/ErrorPolicy.php
b/CRM/Queue/ErrorPolicy.php
index f0d21fe9ec9d8c4dbfbca19b188a795c9c2243e2..e30fbe6d97b56a001307bd3fe085e70205500244 100644
(file)
--- a/
CRM/Queue/ErrorPolicy.php
+++ b/
CRM/Queue/ErrorPolicy.php
@@
-43,6
+43,10
@@
*/
class CRM_Queue_ErrorPolicy {
var $active;
*/
class CRM_Queue_ErrorPolicy {
var $active;
+
+ /**
+ * @param null $level
+ */
function __construct($level = NULL) {
register_shutdown_function(array($this, 'onShutdown'));
if ($level === NULL) {
function __construct($level = NULL) {
register_shutdown_function(array($this, 'onShutdown'));
if ($level === NULL) {
@@
-74,6
+78,11
@@
class CRM_Queue_ErrorPolicy {
$this->active = FALSE;
}
$this->active = FALSE;
}
+ /**
+ * @param $callable
+ *
+ * @return mixed
+ */
function call($callable) {
$this->activate();
try {
function call($callable) {
$this->activate();
try {