/** * Set active environment */ public function setAction() { if (!ConfigService::isEnvironmentExists('local')) { if ($this->confirm('We need to create local environment to save your params. Ok', true)) { ConfigService::createEnvironment('local'); } } $name = $this->ask('Enter name of environment'); $config = ConfigService::getConfig('project', 'local'); $config->set('activeEnvironment', 'local', 'local'); $config->save(); $this->notify('- You set active environment to <bold>' . $name . '</bold>'); }