/** * @param Context $context */ public function initializeContext(Context $context) { if ($context instanceof ShellContext) { $context->init($this->config); } }
/** * 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']); } }