Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
createNewLock example
public
function
save
(
Key
$key
)
{
if
(
$this
->
exists
(
$key
)
)
{
return
;
}
$resource
=
$this
->
getKeyResource
(
$key
)
;
$token
=
$this
->
getUniqueToken
(
$key
)
;
$this
->
createNewLock
(
$resource
,
$token
)
;
$key
->
markUnserializable
(
)
;
$this
->
checkNotExpired
(
$key
)
;
}
/** * @return void */
public
function
delete
(
Key
$key
)
{
if
(
!
$this
->
exists
(
$key
)
)
{