serializer = $serializer; } /** * Generates and retrieves hash of deployment configuration data. * * @param array|string $data the deployment configuration data from files * @return string the hash */ public function generate($data) { return sha1($this->serializer->serialize($data)); } }