[Lock] Add return type to the new LockFactory
This commit is contained in:
parent
a29aff0370
commit
489f36daa2
@ -19,4 +19,15 @@ namespace Symfony\Component\Lock;
|
||||
*/
|
||||
class LockFactory extends Factory
|
||||
{
|
||||
/**
|
||||
* Creates a lock for the given resource.
|
||||
*
|
||||
* @param string $resource The resource to lock
|
||||
* @param float|null $ttl Maximum expected lock duration in seconds
|
||||
* @param bool $autoRelease Whether to automatically release the lock or not when the lock instance is destroyed
|
||||
*/
|
||||
public function createLock($resource, $ttl = 300.0, $autoRelease = true): Lock
|
||||
{
|
||||
return parent::createLock($resource, $ttl, $autoRelease);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user