From 41ff43dcdd5a50a549734e81ce7e90829d06b186 Mon Sep 17 00:00:00 2001 From: nupplaPhil Date: Sat, 18 Jan 2020 20:15:46 +0100 Subject: [PATCH] CleanUp Lock namespace - introduce enum Lock - "Type" - Move Lock/Lock to BaseLock --- src/Core/{Lock/Lock.php => BaseLock.php} | 13 +++---------- src/Core/Lock/CacheLock.php | 7 ++++--- src/Core/Lock/DatabaseLock.php | 5 +++-- src/Core/Lock/ILock.php | 4 ++-- src/Core/Lock/SemaphoreLock.php | 9 +++++---- src/Core/Lock/Type.php | 16 ++++++++++++++++ 6 files changed, 33 insertions(+), 21 deletions(-) rename src/Core/{Lock/Lock.php => BaseLock.php} (82%) create mode 100644 src/Core/Lock/Type.php diff --git a/src/Core/Lock/Lock.php b/src/Core/BaseLock.php similarity index 82% rename from src/Core/Lock/Lock.php rename to src/Core/BaseLock.php index a124340c7..2fcf7cad7 100644 --- a/src/Core/Lock/Lock.php +++ b/src/Core/BaseLock.php @@ -1,21 +1,14 @@