Skip to content

Commit e86ead4

Browse files
authored
Merge pull request #30 from silverstripeltd/feature/silverstripe-5.x-compatibility
2 parents 255f511 + 68fe0bf commit e86ead4

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ This module allows Silverstripe CMS ORM data to be encrypted before being stored
1212

1313

1414
## Requirements
15-
* SilverStripe CMS 4.9
15+
* SilverStripe CMS 5.0
1616

1717
## Installation
1818
Install via Composer:

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
"source": "https://github.com/madmatt/silverstripe-encrypt-at-rest"
1717
},
1818
"require": {
19-
"php": "^8.0",
20-
"silverstripe/framework": "^4.9.0",
19+
"php": "^8.0",
20+
"silverstripe/framework": "^5",
2121
"defuse/php-encryption": "^2.2"
2222
},
2323
"require-dev": {

src/AtRestCryptoService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ protected function getFullPath($file, $visibility = AssetStore::VISIBILITY_PROTE
182182
$fileID = rtrim($filename, '\\/');
183183
}
184184

185-
return $adapter->applyPathPrefix($fileID);
185+
return $adapter->prefixPath($fileID);
186186
}
187187

188188
}

src/Extension/DecryptDataObjectFieldsExtension.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,9 @@ class DecryptDataObjectFieldsExtension extends DataExtension
2626
* if so, we decrypt these and inject them into the object during hydration so that the rest of the application only
2727
* has to deal with the decrypted values everywhere.
2828
*
29-
* @param $record
3029
* @return array
3130
*/
32-
public function augmentHydrateFields($record)
31+
public function augmentHydrateFields()
3332
{
3433
// Look at $this->owner to determine if it has any encrypted database fields
3534
$schema = DataObject::getSchema();

0 commit comments

Comments
 (0)