Skip to content

Commit

Permalink
feat: add missing application configuration (#392)
Browse files Browse the repository at this point in the history
* feat: add missing application configuration

- add `bcrypt_rounds` and `cache_store`

* formatting
  • Loading branch information
SonyPradana authored Sep 23, 2024
1 parent d81efd7 commit 24778f5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/System/Integrate/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,8 @@ public function defaultConfigs()
'APP_KEY' => '',
'ENVIRONMENT' => 'dev',
'APP_DEBUG' => 'false',
'BCRYPT_ROUNDS' => 12,
'CACHE_STORE' => 'file',

'COMMAND_PATH' => DIRECTORY_SEPARATOR . 'app' . DIRECTORY_SEPARATOR . 'Commands' . DIRECTORY_SEPARATOR,
'CONTROLLER_PATH' => DIRECTORY_SEPARATOR . 'app' . DIRECTORY_SEPARATOR . 'Controllers' . DIRECTORY_SEPARATOR,
Expand Down
4 changes: 3 additions & 1 deletion tests/Integrate/ApplicationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function itCanLoadConfigFromDefault()
$app = new Application('/');

$app->loadConfig(new ConfigRepository($app->defaultConfigs()));
/** @var Config */
/** @var ConfigRepository */
$config = $app->get('config');

$this->assertEquals($this->defaultConfigs(), $config->toArray());
Expand Down Expand Up @@ -288,6 +288,8 @@ private function defaultConfigs()
'APP_KEY' => '',
'ENVIRONMENT' => 'dev',
'APP_DEBUG' => 'false',
'BCRYPT_ROUNDS' => 12,
'CACHE_STORE' => 'file',

'COMMAND_PATH' => DIRECTORY_SEPARATOR . 'app' . DIRECTORY_SEPARATOR . 'Commands' . DIRECTORY_SEPARATOR,
'CONTROLLER_PATH' => DIRECTORY_SEPARATOR . 'app' . DIRECTORY_SEPARATOR . 'Controllers' . DIRECTORY_SEPARATOR,
Expand Down

0 comments on commit 24778f5

Please sign in to comment.