Beispiel #1
0
 /**
  * @param string $method
  * @param array $args
  * @throws RuntimeException
  */
 public function __call($method, $args)
 {
     $widget = $this->getDecoratedWidget();
     $shouldInit = false;
     if ($widget instanceof Streamwide_Engine_Call_Leg_Connector && strtolower($method) === 'connect') {
         $shouldInit = true;
     } elseif ($widget instanceof Streamwide_Engine_Automatic_Signal_Relayer && strtolower($method) === 'start') {
         $shouldInit = true;
     }
     if ($shouldInit) {
         $this->_subscribeToEngineEvents();
     }
     return parent::__call($method, $args);
 }