private function collectStats($automatic_collection) { $preferencesService = $this->container->get('system_preferences_service'); $preferencesService->CollectStatistics = $automatic_collection; }