public static function customizeSampleEnvFile() { $appId = strtolower(basename(getcwd())); $replaces = array('my-app-id' => $appId, 'mydbname' => $appId, 'mydbname_test' => "{$appId}-test", 'some random string - CHANGE IT!' => Installer::randomString()); static::applyValues('.env-sample.php', $replaces); }
public function get_complete() { if (!Session::get('step_4_passed')) { return Redirect::to('install/step_4'); } // Update bundles.php file $source = path('bundle') . 'install/file_templates/bundles.tpl'; $destination = path('app') . 'bundles.php'; Installer::write_file($source, $destination); // Set application as installed Installer::set_app_installed(); $this->layout->nav_step = 5; $this->layout->content = View::make('install::complete')->with('avatar_first_name', Session::get('avatar_first_name'))->with('avatar_last_name', Session::get('avatar_last_name'))->with('email', Session::get('email'))->with('password', Session::get('password')); }
public function validate_test_db_connection() { $this->adm_lang = Session::get('adm_lang'); $this->messages['test_db_connection'] = __('install::lang.Unable to connect to database')->get($this->adm_lang); return Installer::test_db_connection(Input::all()); }