Перевод на доменную архитектуру
This commit is contained in:
13
app/Application/Reports/ReportFlowDecider.php
Normal file
13
app/Application/Reports/ReportFlowDecider.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace App\Application\Reports;
|
||||
|
||||
final class ReportFlowDecider
|
||||
{
|
||||
public function shouldUseNewArchitecture(string $reportType = 'daily'): bool
|
||||
{
|
||||
$enabledTypes = config('reports.use_new_arch.report_types', []);
|
||||
|
||||
return in_array($reportType, $enabledTypes, true);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user