From 30a46d269345b3b2069abc2e39438c218d7e1f4f Mon Sep 17 00:00:00 2001 From: SonyPradana Date: Mon, 23 Sep 2024 13:24:32 +0700 Subject: [PATCH] feat: add missing aplication configuation - add `bcrypt_rounds` and `cache_store` --- src/System/Integrate/Application.php | 2 ++ tests/Integrate/ApplicationTest.php | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/System/Integrate/Application.php b/src/System/Integrate/Application.php index 1d093630..12340074 100644 --- a/src/System/Integrate/Application.php +++ b/src/System/Integrate/Application.php @@ -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, diff --git a/tests/Integrate/ApplicationTest.php b/tests/Integrate/ApplicationTest.php index fcf17a8a..221cc2e3 100644 --- a/tests/Integrate/ApplicationTest.php +++ b/tests/Integrate/ApplicationTest.php @@ -44,7 +44,7 @@ public function itCanLoadConfigFromDefault() $app = new Application('/'); $app->loadConfig(new ConfigRepository($app->defaultConfigs())); - /** @var Config */ + /** @var System\Integrate\ConfigRepository */ $config = $app->get('config'); $this->assertEquals($this->defaultConfigs(), $config->toArray()); @@ -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,