Skip to content

Commit

Permalink
extract method
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Dec 28, 2016
1 parent bb998dc commit 57fe0ab
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions src/Illuminate/Foundation/Bootstrap/LoadConfiguration.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,7 @@ public function bootstrap(Application $app)
return $config->get('app.env', 'production');
});

date_default_timezone_set($config->get('app.timezone', 'UTC'));

mb_internal_encoding('UTF-8');
$this->setPhpConfiguration($config);
}

/**
Expand Down Expand Up @@ -76,4 +74,17 @@ protected function getConfigurationFiles(Application $app)

return $files;
}

/**
* Set a few PHP configuration options.
*
* @param \Illuminate\Contracts\Config\Repository $config
* @return void
*/
protected function setPhpConfiguration(RepositoryContract $config)
{
date_default_timezone_set($config->get('app.timezone', 'UTC'));

mb_internal_encoding('UTF-8');
}
}

0 comments on commit 57fe0ab

Please sign in to comment.