37 lines
1.1 KiB
PHP
37 lines
1.1 KiB
PHP
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
use App\Reports\ActionsDecisionsCountReport;
|
|
use App\Reports\ActivitiesPerPeriodReport;
|
|
use App\Reports\ActiveContractsReport;
|
|
use App\Reports\FieldJobsCompletedReport;
|
|
use App\Reports\DecisionsCountReport;
|
|
use App\Reports\ReportRegistry;
|
|
use App\Reports\SegmentActivityCountsReport;
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
|
class ReportServiceProvider extends ServiceProvider
|
|
{
|
|
public function register(): void
|
|
{
|
|
$this->app->singleton(ReportRegistry::class, function () {
|
|
$registry = new ReportRegistry;
|
|
// Register built-in reports here
|
|
$registry->register(new FieldJobsCompletedReport);
|
|
$registry->register(new SegmentActivityCountsReport);
|
|
$registry->register(new ActionsDecisionsCountReport);
|
|
$registry->register(new ActivitiesPerPeriodReport);
|
|
$registry->register(new DecisionsCountReport);
|
|
$registry->register(new ActiveContractsReport);
|
|
|
|
return $registry;
|
|
});
|
|
}
|
|
|
|
public function boot(): void
|
|
{
|
|
//
|
|
}
|
|
}
|