Loading lib/AppInfo/Application.php +1 −1 Original line number Diff line number Diff line Loading @@ -26,6 +26,7 @@ declare(strict_types=1); namespace OCA\EcloudAccounts\AppInfo; use OCA\EcloudAccounts\Filesystem\StorageWrapper; use OCA\EcloudAccounts\Listeners\BeforeTemplateRenderedListener; use OCA\EcloudAccounts\Listeners\BeforeUserDeletedListener; use OCA\EcloudAccounts\Listeners\PasswordUpdatedListener; Loading @@ -44,7 +45,6 @@ use OCP\User\Events\BeforeUserDeletedEvent; use OCP\User\Events\PasswordUpdatedEvent; use OCP\User\Events\UserChangedEvent; use OCP\Util; use OCA\EcloudAccounts\Filesystem\StorageWrapper; class Application extends App implements IBootstrap { public const APP_ID = 'ecloud-accounts'; Loading lib/Filesystem/CacheWrapper.php +16 −0 Original line number Diff line number Diff line Loading @@ -31,4 +31,20 @@ class CacheWrapper extends Wrapper { } return $entry; } public function get($fileId) { throw new OCP\Files\Cache\CacheEntryNotFoundException('User data cache access is disabled.'); } public function insert($file, $data) { throw new \OCP\Files\Cache\CacheUpdateForbiddenException('User data cache insert is disabled.'); } public function update($id, $data) { throw new \OCP\Files\Cache\CacheUpdateForbiddenException('User data cache update is disabled.'); } public function remove($fileId) { throw new \OCP\Files\Cache\CacheUpdateForbiddenException('User data cache removal is disabled.'); } } lib/Filesystem/StorageWrapper.php +0 −1 Original line number Diff line number Diff line Loading @@ -10,7 +10,6 @@ use OC\Files\Storage\Wrapper\Wrapper; use OCP\Files\ForbiddenException; use OCP\Files\Storage\IStorage; use OCP\Files\Storage\IWriteStreamStorage; use OCA\EcloudAccounts\Filesystem\CacheWrapper; class StorageWrapper extends Wrapper implements IWriteStreamStorage { /** Loading Loading
lib/AppInfo/Application.php +1 −1 Original line number Diff line number Diff line Loading @@ -26,6 +26,7 @@ declare(strict_types=1); namespace OCA\EcloudAccounts\AppInfo; use OCA\EcloudAccounts\Filesystem\StorageWrapper; use OCA\EcloudAccounts\Listeners\BeforeTemplateRenderedListener; use OCA\EcloudAccounts\Listeners\BeforeUserDeletedListener; use OCA\EcloudAccounts\Listeners\PasswordUpdatedListener; Loading @@ -44,7 +45,6 @@ use OCP\User\Events\BeforeUserDeletedEvent; use OCP\User\Events\PasswordUpdatedEvent; use OCP\User\Events\UserChangedEvent; use OCP\Util; use OCA\EcloudAccounts\Filesystem\StorageWrapper; class Application extends App implements IBootstrap { public const APP_ID = 'ecloud-accounts'; Loading
lib/Filesystem/CacheWrapper.php +16 −0 Original line number Diff line number Diff line Loading @@ -31,4 +31,20 @@ class CacheWrapper extends Wrapper { } return $entry; } public function get($fileId) { throw new OCP\Files\Cache\CacheEntryNotFoundException('User data cache access is disabled.'); } public function insert($file, $data) { throw new \OCP\Files\Cache\CacheUpdateForbiddenException('User data cache insert is disabled.'); } public function update($id, $data) { throw new \OCP\Files\Cache\CacheUpdateForbiddenException('User data cache update is disabled.'); } public function remove($fileId) { throw new \OCP\Files\Cache\CacheUpdateForbiddenException('User data cache removal is disabled.'); } }
lib/Filesystem/StorageWrapper.php +0 −1 Original line number Diff line number Diff line Loading @@ -10,7 +10,6 @@ use OC\Files\Storage\Wrapper\Wrapper; use OCP\Files\ForbiddenException; use OCP\Files\Storage\IStorage; use OCP\Files\Storage\IWriteStreamStorage; use OCA\EcloudAccounts\Filesystem\CacheWrapper; class StorageWrapper extends Wrapper implements IWriteStreamStorage { /** Loading