Page MenuHomeDevCentral

D233.diff
No OneTemporary

D233.diff

diff --git a/src/BlackholeBroker.php b/src/BlackholeBroker.php
--- a/src/BlackholeBroker.php
+++ b/src/BlackholeBroker.php
@@ -17,6 +17,18 @@
}
/**
+ * Determines if the configuration wants an omnipotent blackhole
+ *
+ * @param array $params An array with omnipotence information
+ * @return bool
+ */
+ static private function configWantsOmnipotence ($params) {
+ return array_key_exists('omnipotence', $params)
+ &&
+ $params['omnipotence'];
+ }
+
+ /**
* Initializes a new instance of the broker from specified parameters
*
* @param array $params An array with omnipotence information
@@ -25,7 +37,7 @@
static public function makeFromConfig ($params) {
$instance = new self;
- if ($params['omnipotence']) {
+ if (self::configWantsOmnipotence($params)) {
$instance->acceptAllMethodCalls();
}

File Metadata

Mime Type
text/plain
Expires
Sun, Nov 17, 12:41 (20 h, 51 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2249384
Default Alt Text
D233.diff (944 B)

Event Timeline