Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3749088
D233.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
944 B
Referenced Files
None
Subscribers
None
D233.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D233: Fix BrokerFactory issue to provide blackhole broker
Attached
Detach File
Event Timeline
Log In to Comment