PHP Class Neos\Flow\Core\LockManager

Mostrar archivo Open project: neos/flow-development-collection Class Usage Examples

Protected Properties

Property Type Description
$lockFlagPathAndFilename string See https://jira.neos.io/browse/FLOW-365 for some background information
$lockPathAndFilename string This file contains the actual lock, set via \flock() in lockSiteOrExit()
$lockResource resource

Public Methods

Method Description
__construct ( ) Initializes the manager, removing expired locks
exitIfSiteLocked ( ) : void Exits if the site is currently locked
isSiteLocked ( ) : boolean Tells if the site is currently locked
lockSiteOrExit ( ) : void Locks the site for further requests.
unlockSite ( ) : void Unlocks the site if this request has locked it.

Protected Methods

Method Description
doExit ( ) : void Exit and emit a message about the reason.
getLockPath ( ) : string Returns the absolute path to a directory that should contain the lock files
removeExpiredLock ( ) : void

Method Details

__construct() public method

Initializes the manager, removing expired locks
public __construct ( )

doExit() protected method

Exit and emit a message about the reason.
protected doExit ( ) : void
return void

exitIfSiteLocked() public method

Exits if the site is currently locked
public exitIfSiteLocked ( ) : void
return void

getLockPath() protected method

Returns the absolute path to a directory that should contain the lock files
protected getLockPath ( ) : string
return string

isSiteLocked() public method

Tells if the site is currently locked
public isSiteLocked ( ) : boolean
return boolean

lockSiteOrExit() public method

Locks the site for further requests.
public lockSiteOrExit ( ) : void
return void

removeExpiredLock() protected method

protected removeExpiredLock ( ) : void
return void

unlockSite() public method

Unlocks the site if this request has locked it.
public unlockSite ( ) : void
return void

Property Details

$lockFlagPathAndFilename protected_oe property

See https://jira.neos.io/browse/FLOW-365 for some background information
protected string $lockFlagPathAndFilename
return string

$lockPathAndFilename protected_oe property

This file contains the actual lock, set via \flock() in lockSiteOrExit()
protected string $lockPathAndFilename
return string

$lockResource protected_oe property

protected resource $lockResource
return resource