Example #1
0
 /**
  * (non-PHPdoc)
  * @see ClientImpl::open()
  */
 protected function open()
 {
     $environment = $this->asyncAgiEvent->getEnvironment();
     $this->channel = $this->asyncAgiEvent->getChannel();
     foreach (explode("\n", $environment) as $line) {
         if ($this->isEndOfEnvironmentVariables($line)) {
             break;
         }
         $this->readEnvironmentVariable($line);
     }
     $this->listenerId = $this->pamiClient->registerEventListener($this);
     $this->logger->debug(print_r($this->variables, true));
 }