1
0
Fork 0
mirror of synced 2024-07-09 00:16:13 +12:00

prevent adapter update

This commit is contained in:
Damodar Lohani 2021-06-17 13:36:29 +05:45
parent f92fa47c0c
commit 7829ac09b3

View file

@ -154,7 +154,6 @@ App::put('/v1/storage/buckets/:bucketId')
->param('maximumFileSize', 0, new Integer(), 'Maximum file size allowed.', true) ->param('maximumFileSize', 0, new Integer(), 'Maximum file size allowed.', true)
->param('allowedFileExtensions', ['*'], new ArrayList(new Text(64)), 'Allowed file extensions', true) ->param('allowedFileExtensions', ['*'], new ArrayList(new Text(64)), 'Allowed file extensions', true)
->param('enabled', true, new Boolean(), 'Is bucket enabled?', true) ->param('enabled', true, new Boolean(), 'Is bucket enabled?', true)
->param('adapter', 'local', new WhiteList(['local']), 'Storage adapter.', true)
->param('encryption', true, new Boolean(), 'Is encryption enabled?', true) ->param('encryption', true, new Boolean(), 'Is encryption enabled?', true)
->param('antiVirus', true, new Boolean(), 'Is virus scanning enabled?', true) ->param('antiVirus', true, new Boolean(), 'Is virus scanning enabled?', true)
->inject('response') ->inject('response')
@ -181,7 +180,6 @@ App::put('/v1/storage/buckets/:bucketId')
->setAttribute('maximumFileSize',$maximumFileSize) ->setAttribute('maximumFileSize',$maximumFileSize)
->setAttribute('allowedFileExtensions',$allowedFileExtensions) ->setAttribute('allowedFileExtensions',$allowedFileExtensions)
->setAttribute('enabled',$enabled) ->setAttribute('enabled',$enabled)
->setAttribute('adapter',$adapter)
->setAttribute('encryption',$encryption) ->setAttribute('encryption',$encryption)
->setAttribute('antiVirus',$antiVirus) ->setAttribute('antiVirus',$antiVirus)
); );