a bit of progress
This commit is contained in:
@@ -18,11 +18,14 @@ class CrimeController extends Controller
|
||||
protected EnergyService $energyService;
|
||||
protected NotificationService $notificationService;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->crimeService = new CrimeService();
|
||||
$this->energyService = new EnergyService();
|
||||
$this->notificationService = new NotificationService();
|
||||
public function __construct(
|
||||
CrimeService $crimeService,
|
||||
EnergyService $energyService,
|
||||
NotificationService $notificationService
|
||||
) {
|
||||
$this->crimeService = $crimeService;
|
||||
$this->energyService = $energyService;
|
||||
$this->notificationService = $notificationService;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user