[Config] added type prefixes to resource ids
Makes sure that directory and the file resources with the same name will have different ids
This commit is contained in:
parent
ece489f4b9
commit
ff9c1321dc
@ -210,7 +210,7 @@ class DirectoryResource implements ResourceInterface
|
||||
*/
|
||||
public function getId()
|
||||
{
|
||||
return md5($this->resource.$this->pattern);
|
||||
return md5('d'.$this->resource.$this->pattern);
|
||||
}
|
||||
|
||||
public function serialize()
|
||||
|
@ -97,7 +97,7 @@ class FileResource implements ResourceInterface
|
||||
*/
|
||||
public function getId()
|
||||
{
|
||||
return md5($this->resource);
|
||||
return md5('f'.$this->resource);
|
||||
}
|
||||
|
||||
public function serialize()
|
||||
|
Reference in New Issue
Block a user