getServices() as $service) { $this->modifyProperty($service, $app); if (method_exists($service, 'register')) { $service->register(); } if (method_exists($service, 'boot')) { $app->invoke([$service, 'boot']); } } } }