diff options
author | Robin Appelman <robin@icewind.nl> | 2020-11-26 17:39:46 +0300 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2020-11-26 17:39:46 +0300 |
commit | 88f35d52d2baf6421725ce5f2a40331afe13f1de (patch) | |
tree | bbcc20c2383086b71e1689764ab26fa1460bfc2c /lib/public/Files | |
parent | 23fb497ff59a90813cba24ca1c82be979cf95046 (diff) |
rename cache event to follow new naming standards
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/public/Files')
-rw-r--r-- | lib/public/Files/Cache/CacheEntryInsertedEvent.php | 35 | ||||
-rw-r--r-- | lib/public/Files/Cache/CacheEntryRemovedEvent.php (renamed from lib/public/Files/Cache/CacheRemoveEvent.php) | 2 | ||||
-rw-r--r-- | lib/public/Files/Cache/CacheEntryUpdatedEvent.php | 35 | ||||
-rw-r--r-- | lib/public/Files/Cache/CacheInsertEvent.php | 5 | ||||
-rw-r--r-- | lib/public/Files/Cache/CacheUpdateEvent.php | 5 |
5 files changed, 75 insertions, 7 deletions
diff --git a/lib/public/Files/Cache/CacheEntryInsertedEvent.php b/lib/public/Files/Cache/CacheEntryInsertedEvent.php new file mode 100644 index 00000000000..936cf8c6021 --- /dev/null +++ b/lib/public/Files/Cache/CacheEntryInsertedEvent.php @@ -0,0 +1,35 @@ +<?php + +declare(strict_types=1); +/** + * @copyright Copyright (c) 2020 Robin Appelman <robin@icewind.nl> + * + * @license GNU AGPL version 3 or any later version + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + */ + +namespace OCP\Files\Cache; + + +use OC\Files\Cache\AbstractCacheEvent; + +/** + * Event for when an existing entry in the cache gets inserted + * + * @since 21.0.0 + */ +class CacheEntryInsertedEvent extends AbstractCacheEvent implements ICacheEvent { +} diff --git a/lib/public/Files/Cache/CacheRemoveEvent.php b/lib/public/Files/Cache/CacheEntryRemovedEvent.php index 3b1e536f471..e257e1cfaa2 100644 --- a/lib/public/Files/Cache/CacheRemoveEvent.php +++ b/lib/public/Files/Cache/CacheEntryRemovedEvent.php @@ -30,5 +30,5 @@ use OC\Files\Cache\AbstractCacheEvent; * * @since 21.0.0 */ -class CacheRemoveEvent extends AbstractCacheEvent { +class CacheEntryRemovedEvent extends AbstractCacheEvent implements ICacheEvent { } diff --git a/lib/public/Files/Cache/CacheEntryUpdatedEvent.php b/lib/public/Files/Cache/CacheEntryUpdatedEvent.php new file mode 100644 index 00000000000..252a306404d --- /dev/null +++ b/lib/public/Files/Cache/CacheEntryUpdatedEvent.php @@ -0,0 +1,35 @@ +<?php + +declare(strict_types=1); +/** + * @copyright Copyright (c) 2020 Robin Appelman <robin@icewind.nl> + * + * @license GNU AGPL version 3 or any later version + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + */ + +namespace OCP\Files\Cache; + + +use OC\Files\Cache\AbstractCacheEvent; + +/** + * Event for when an existing entry in the cache gets updated + * + * @since 21.0.0 + */ +class CacheEntryUpdatedEvent extends AbstractCacheEvent implements ICacheEvent { +} diff --git a/lib/public/Files/Cache/CacheInsertEvent.php b/lib/public/Files/Cache/CacheInsertEvent.php index 84fc1a2e928..08ab15f9a2d 100644 --- a/lib/public/Files/Cache/CacheInsertEvent.php +++ b/lib/public/Files/Cache/CacheInsertEvent.php @@ -26,12 +26,11 @@ declare(strict_types=1); namespace OCP\Files\Cache; -use OC\Files\Cache\AbstractCacheEvent; - /** * Event for when a new entry gets added to the cache * * @since 16.0.0 + * @deprecated 21.0.0 use CacheEntryInsertedEvent instead */ -class CacheInsertEvent extends AbstractCacheEvent { +class CacheInsertEvent extends CacheEntryInsertedEvent { } diff --git a/lib/public/Files/Cache/CacheUpdateEvent.php b/lib/public/Files/Cache/CacheUpdateEvent.php index f20056d2666..54397045398 100644 --- a/lib/public/Files/Cache/CacheUpdateEvent.php +++ b/lib/public/Files/Cache/CacheUpdateEvent.php @@ -26,12 +26,11 @@ declare(strict_types=1); namespace OCP\Files\Cache; -use OC\Files\Cache\AbstractCacheEvent; - /** * Event for when an existing entry in the cache gets updated * * @since 16.0.0 + * @deprecated 21.0.0 use CacheEntryUpdatedEvent instead */ -class CacheUpdateEvent extends AbstractCacheEvent { +class CacheUpdateEvent extends CacheEntryUpdatedEvent { } |