Skip to content

Commit 280c9e0

Browse files
authored
Merge pull request #92 from bowphp/rename-frontend-folder
Refactoring app config
2 parents 13fa60a + bf8ef7d commit 280c9e0

4 files changed

Lines changed: 18 additions & 7 deletions

File tree

bow

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ if (!file_exists(__DIR__."/vendor/autoload.php")) {
1313
require __DIR__."/vendor/autoload.php";
1414

1515
// Make kernel instance
16-
$kernel = Kernel::configure(__DIR__.'/config');
16+
$kernel = Kernel::configure(__DIR__)->withConfigPath(__DIR__ . '/config');
1717

1818
// Create command instance and set filename
1919
$setting = new Setting(__DIR__);

config/notifier.php

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,20 @@
1212
'webhook_url' => app_env('SLACK_WEBHOOK_URL'),
1313
],
1414

15-
'twilio' => [
16-
'account_sid' => app_env('TWILIO_ACCOUNT_SID'),
17-
'auth_token' => app_env('TWILIO_AUTH_TOKEN'),
18-
'from' => app_env('TWILIO_FROM'),
15+
'sms' => [
16+
'provider' => app_env('SMS_PROVIDER', 'twilio'), // Default SMS provider
17+
18+
'twilio' => [
19+
'account_sid' => app_env('TWILIO_ACCOUNT_SID'),
20+
'auth_token' => app_env('TWILIO_AUTH_TOKEN'),
21+
'from' => app_env('TWILIO_FROM'),
22+
],
23+
24+
'callisto' => [
25+
'access_key' => app_env('CALLISTO_ACCESS_KEY'),
26+
'access_secret' => app_env('CALLISTO_ACCESS_SECRET'),
27+
'notify_url' => app_env('CALLISTO_NOTIFY_URL'),
28+
'sender' => app_env('CALLISTO_SENDER'),
29+
],
1930
],
2031
];

public/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
// Bind kernel to application
2222
$app->bind(
23-
Kernel::configure(base_path('config'))
23+
Kernel::configure(dirname(__DIR__))->withConfigPath(dirname(__DIR__) . '/config')
2424
);
2525

2626
// Run The Application

seeders/20251220174703-user-seeder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public function run()
1010
$faker = FakerFactory::create();
1111

1212
foreach (range(1, 5) as $value) {
13-
$user =[
13+
$user = [
1414
'name' => $faker->name,
1515
'description' => $faker->text(100),
1616
'email' => $faker->email,

0 commit comments

Comments
 (0)