minor #23797 Don't force lowercase for hasher values (javiereguiluz)
This PR was merged into the 4.0-dev branch.
Discussion
----------
Don't force lowercase for hasher values
| Q | A
| ------------- | ---
| Branch? | master
| Bug fix? | no
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | -
| License | MIT
| Doc PR | -
In Symfony 4.x we no longer modify the service ids to lowercase them, so this PR tweaks the hasher introduced in #23766.
Commits
-------
156cb70
[DI] Don't force lowercase for hasher values
This commit is contained in:
commit
d6a1289f8e
@ -1328,7 +1328,7 @@ class ContainerBuilder extends Container implements TaggedContainerInterface
|
|||||||
{
|
{
|
||||||
$hash = substr(base64_encode(hash('sha256', serialize($value), true)), 0, 7);
|
$hash = substr(base64_encode(hash('sha256', serialize($value), true)), 0, 7);
|
||||||
|
|
||||||
return str_replace(array('/', '+'), array('.', '_'), strtolower($hash));
|
return str_replace(array('/', '+'), array('.', '_'), $hash);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user