src/Dependencies/Dependency.php
protected function generateReusableHash(): string
    {
        $data = $this->data;
        $this->data = null;  // https://github.com/yiisoft/yii2/issues/3052
        $key = sha1(serialize($this));
        $this->data = $data;
        return $key;
    }
protected function generateReusableHash(): string
    {
        $data = $this->data;
        $this->data = null;  // https://github.com/yiisoft/yii2/issues/3052
        $key = sha1(serialize($this));
        $this->data = $data;
        return $key;
    }
protected function generateReusableHash ( ) : string { $ data = $ this -> data ; $ this -> data = null ; // https://github.com/yiisoft/yii2/issues/3052 $ key = sha1 ( serialize ( $ this ) ) ; $ this -> data = $ data ; return $ key ; }
Generates a unique hash that can be used for retrieving reusable dependency data.
@return string a unique hash value for this cache dependency.
@see reusable
Generates a unique hash that can be used for retrieving reusable dependency data .