Skip to content

Latest commit

 

History

History
83 lines (29 loc) · 625 Bytes

File metadata and controls

83 lines (29 loc) · 625 Bytes

LockableTrait

Basic lock feature for commands.

  • Full name: \Symfony\Component\Console\Command\LockableTrait

Properties

lock

private \Symfony\Component\Lock\LockInterface|null $lock

Methods

lock

Locks a command.

private lock(string $name = null, bool $blocking = false): bool

Parameters:

Parameter Type Description
$name string
$blocking bool

release

Releases the command lock if there is one.

private release(): mixed