30 private $hashGenerator;
37 private $dataConfigCollector;
46 HashGenerator $hashGenerator,
49 $this->configHash = $configHash;
50 $this->hashGenerator = $hashGenerator;
51 $this->dataConfigCollector = $dataConfigCollector;
67 $configs = $this->dataConfigCollector->getConfig($sectionName);
68 $hashes = $this->configHash->get();
70 foreach ($configs as $section =>
$config) {
74 $savedHash = isset($hashes[$section]) ? $hashes[$section] :
null;
75 $generatedHash = empty(
$config) && !$savedHash ? null : $this->hashGenerator->generate(
$config);
76 if ($generatedHash !== $savedHash) {
__construct(Hash $configHash, HashGenerator $hashGenerator, DataCollector $dataConfigCollector)
hasChanges($sectionName=null)