コード例 #1
0
 /**
  * @param $eventKey
  * @param $eventValue
  * @return mixed
  */
 public function dispatch($eventKey, $eventValue)
 {
     $parameters = ['eventkey' => $eventKey, 'eventvalue' => $eventValue];
     foreach ($this->api->getServices() as $serviceConfig) {
         $this->api->callServiceMethod($serviceConfig->getName(), 'api_dispatcher_entry', $parameters);
     }
 }
コード例 #2
0
 /**
  * @param $eventKey
  * @param $eventValue
  * @return mixed
  */
 public function dispatch($eventKey, $eventValue)
 {
     $this->api->callMethod($this->routeName, ['eventkey' => $eventKey, 'eventValue' => $eventValue]);
 }