/** * Update all charts for one specific user * @param string $userName */ private function updateChartsForUser($userName) { $charts = $this->configService->getChartsByUsername($userName); foreach ($charts as $chartConfig) { $this->updateChart($chartConfig); } }