refactor(configuration): centralize configuration management in ConfigurationRepository

This commit is contained in:
Andras Bacsai committed 2025-03-24 21:01:27 +01:00
1 parent d01889a0c2
commit e891318396
7 files changed
+110 -61

No files matched your search

@@ -0,0 +1,21 @@
<?php
namespace App\Providers;
use App\Services\ConfigurationRepository;
use Illuminate\Support\ServiceProvider;
class ConfigurationServiceProvider extends ServiceProvider
{
public function register(): void
{
$this->app->singleton(ConfigurationRepository::class, function ($app) {
return new ConfigurationRepository($app['config']);
});
}
public function boot(): void
{
//
}
}