Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
getPrivateKey example
foreach
(
$this
->
getEffects
(
)
as
$effect
)
{
$extension
=
$effect
->
getDerivativeExtension
(
$extension
)
;
}
return
$extension
;
}
/** * {@inheritdoc} */
public
function
getPathToken
(
$uri
)
{
// Return the first 8 characters.
return
substr
(
Crypt::
hmacBase64
(
$this
->
id
(
)
. ':' .
$this
->
addExtension
(
$uri
)
,
$this
->
getPrivateKey
(
)
.
$this
->
getHashSalt
(
)
)
, 0, 8
)
;
}
/** * {@inheritdoc} */
public
function
deleteImageEffect
(
ImageEffectInterface
$effect
)
{
$this
->
getEffects
(
)
->
removeInstanceId
(
$effect
->
getUuid
(
)
)
;
$this
->
save
(
)
;
return
$this
;
}