/**
  * @param Context $context
  */
 public function initializeContext(Context $context)
 {
     if ($context instanceof ShellContext) {
         $context->init($this->config);
     }
 }
示例#2
0
 /**
  * Initializes provided context.
  *
  * @param Context $context
  */
 public function initializeContext(Context $context)
 {
     if ($context instanceof LepusContext) {
         $context->init($this->config['host'], $this->config['port'], $this->config['user'], $this->config['password'], $this->config['vhost']);
     }
 }