/** * Run the command. */ public function run() { $data = $this->dispatch(new ReadEnvironmentFile()); if ($timezone = array_pull($data, 'APP_TIMEZONE')) { $this->settings->create(['key' => 'streams::timezone', 'value' => $timezone]); } if ($locale = array_pull($data, 'DEFAULT_LOCALE')) { $this->settings->create(['key' => 'streams::default_locale', 'value' => $locale]); } $this->dispatch(new WriteEnvironmentFile($data)); }