Browse Source
Merge pull request #23409 from nextcloud/fix/cache-entry-array-access
The file cache entry is array accessible
pull/23401/head
Morris Jobke
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
8 additions and
2 deletions
-
lib/private/Files/Cache/CacheEntry.php
-
lib/public/Files/Cache/ICacheEntry.php
|
|
|
@ -27,7 +27,7 @@ use OCP\Files\Cache\ICacheEntry; |
|
|
|
/** |
|
|
|
* meta data for a file or folder |
|
|
|
*/ |
|
|
|
class CacheEntry implements ICacheEntry, \ArrayAccess { |
|
|
|
class CacheEntry implements ICacheEntry { |
|
|
|
/** |
|
|
|
* @var array |
|
|
|
*/ |
|
|
|
|
|
|
|
@ -23,12 +23,18 @@ |
|
|
|
|
|
|
|
namespace OCP\Files\Cache; |
|
|
|
|
|
|
|
use ArrayAccess; |
|
|
|
|
|
|
|
/** |
|
|
|
* meta data for a file or folder |
|
|
|
* |
|
|
|
* @since 9.0.0 |
|
|
|
* |
|
|
|
* This interface extends \ArrayAccess since v21.0.0, previous versions only |
|
|
|
* implemented it in the private implementation. Hence php would allow using the |
|
|
|
* object as array, while strictly speaking it didn't support this. |
|
|
|
*/ |
|
|
|
interface ICacheEntry { |
|
|
|
interface ICacheEntry extends ArrayAccess { |
|
|
|
public const DIRECTORY_MIMETYPE = 'httpd/unix-directory'; |
|
|
|
|
|
|
|
/** |
|
|
|
|