/** * @return Session */ private function getSession() { if (null == $this->session) { $this->session = new Session(new Configuration($this->machine->getIp()), new Password(self::DEFAULT_USERNAME, self::DEFAULT_PASSWORD)); } return $this->session; }
/** * {@inheritdoc} */ public function run() { $this->userInteraction->writeTitle('Configure routing for direct Docker containers access'); $machineIp = $this->machine->getIp(); $this->configureRouting($machineIp); $this->addPermanentRouting($machineIp); }