diff --git a/bow b/bow index c203d78..2582323 100755 --- a/bow +++ b/bow @@ -13,7 +13,7 @@ if (!file_exists(__DIR__."/vendor/autoload.php")) { require __DIR__."/vendor/autoload.php"; // Make kernel instance -$kernel = Kernel::configure(__DIR__.'/config'); +$kernel = Kernel::configure(__DIR__)->withConfigPath(__DIR__ . '/config'); // Create command instance and set filename $setting = new Setting(__DIR__); diff --git a/config/notifier.php b/config/notifier.php index 830d147..4a723d4 100644 --- a/config/notifier.php +++ b/config/notifier.php @@ -12,9 +12,20 @@ 'webhook_url' => app_env('SLACK_WEBHOOK_URL'), ], - 'twilio' => [ - 'account_sid' => app_env('TWILIO_ACCOUNT_SID'), - 'auth_token' => app_env('TWILIO_AUTH_TOKEN'), - 'from' => app_env('TWILIO_FROM'), + 'sms' => [ + 'provider' => app_env('SMS_PROVIDER', 'twilio'), // Default SMS provider + + 'twilio' => [ + 'account_sid' => app_env('TWILIO_ACCOUNT_SID'), + 'auth_token' => app_env('TWILIO_AUTH_TOKEN'), + 'from' => app_env('TWILIO_FROM'), + ], + + 'callisto' => [ + 'access_key' => app_env('CALLISTO_ACCESS_KEY'), + 'access_secret' => app_env('CALLISTO_ACCESS_SECRET'), + 'notify_url' => app_env('CALLISTO_NOTIFY_URL'), + 'sender' => app_env('CALLISTO_SENDER'), + ], ], ]; diff --git a/public/index.php b/public/index.php index 218334b..0d7683e 100644 --- a/public/index.php +++ b/public/index.php @@ -20,7 +20,7 @@ // Bind kernel to application $app->bind( - Kernel::configure(base_path('config')) + Kernel::configure(dirname(__DIR__))->withConfigPath(dirname(__DIR__) . '/config') ); // Run The Application diff --git a/seeders/20251220174703-user-seeder.php b/seeders/20251220174703-user-seeder.php index 2f55886..5d403c6 100644 --- a/seeders/20251220174703-user-seeder.php +++ b/seeders/20251220174703-user-seeder.php @@ -10,7 +10,7 @@ public function run() $faker = FakerFactory::create(); foreach (range(1, 5) as $value) { - $user =[ + $user = [ 'name' => $faker->name, 'description' => $faker->text(100), 'email' => $faker->email,