CachingFactoryDecorator::generateHash()

static string generateHash(mixed $value, string $namespace = '')

Generates a SHA-256 hash for the given value.

Optionally, a namespace string can be passed. Calling this method will the same values, but different namespaces, will return different hashes.

Parameters

mixed $value The value to hash
string $namespace Optional. The namespace

Return Value

string The SHA-256 hash
doc_Symfony
2016-10-28 06:08:16
Comments
Leave a Comment

Please login to continue.