IcingaConfig: tell whether config would change

This commit is contained in:
Thomas Gelf 2015-11-06 09:47:36 +01:00
parent de3c824fb2
commit 4f64d79e15

View File

@ -89,6 +89,12 @@ class IcingaConfig
return $config->storeIfModified();
}
public static function wouldChange(DbConnection $connection)
{
$config = new static($connection);
return $config->hasBeenModified();
}
protected function hasBeenModified()
{
$this->generateFromDb();