재 업데이트

This commit is contained in:
2020-01-28 01:17:00 +09:00
parent a8b3befca9
commit ddb971e41e
413 changed files with 13446 additions and 16025 deletions
+6 -4
View File
@@ -19,6 +19,8 @@ use Psr\Log\NullLogger;
* Factory provides method to create locks.
*
* @author Jérémy Derussé <jeremy@derusse.com>
*
* @deprecated "Symfony\Component\Lock\Factory" is deprecated since Symfony 4.4 and will be removed in 5.0 use "Symfony\Component\Lock\LockFactory" instead
*/
class Factory implements LoggerAwareInterface
{
@@ -26,7 +28,7 @@ class Factory implements LoggerAwareInterface
private $store;
public function __construct(StoreInterface $store)
public function __construct(PersistingStoreInterface $store)
{
$this->store = $store;
@@ -36,9 +38,9 @@ class Factory implements LoggerAwareInterface
/**
* Creates a lock for the given resource.
*
* @param string $resource The resource to lock
* @param float $ttl Maximum expected lock duration in seconds
* @param bool $autoRelease Whether to automatically release the lock or not when the lock instance is destroyed
* @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
*
* @return Lock
*/