Example #1
0
 /**
  * Initializes a new instance of the broker from specified parameters
  *
  * @param array $params An array with omnipotence information
  * @return Keruald\Broker\BlackholeBroker A connected instance of the broker
  */
 public static function makeFromConfig($params)
 {
     $instance = new self();
     if (self::configWantsOmnipotence($params)) {
         $instance->acceptAllMethodCalls();
     }
     return $instance;
 }