/**
  * @return Health
  */
 private function getHealthResult()
 {
     $healthIndicator = new CompositeHealthIndicator($this->aggregator);
     foreach ($this->indicators as $key => $entry) {
         $healthIndicator->addHealthIndicator($key, $entry);
     }
     return $healthIndicator->health();
 }
 public function __invoke(Application $app, Request $request)
 {
     $healthAggregator = $app['health.aggregator'];
     $healthIndicators = $app['health.indicators'];
     assert(!is_null($healthAggregator), "health.aggregator must not be null");
     assert(!is_null($healthIndicators), "health.indicators must not be null");
     $healthIndicator = new CompositeHealthIndicator($healthAggregator);
     foreach ($healthIndicators as $key => $entry) {
         $healthIndicator->addHealthIndicator($key, $entry);
     }
     return $healthIndicator->health();
 }