예제 #1
0
 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);
 }
예제 #2
0
파일: install.php 프로젝트: juaniiie/mwi
 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'));
 }
예제 #3
0
파일: validator.php 프로젝트: juaniiie/mwi
 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());
 }