We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 568b2e8 commit a42b779Copy full SHA for a42b779
1 file changed
system/DataCaster/Cast/EncryptedCast.php
@@ -14,7 +14,6 @@
14
namespace CodeIgniter\DataCaster\Cast;
15
16
use CodeIgniter\DataCaster\Exceptions\CastException;
17
-use Config\Services;
18
use SensitiveParameter;
19
20
/**
@@ -45,7 +44,7 @@ public static function get(
45
44
throw CastException::forInvalidEncryptedPayload();
46
}
47
48
- return Services::encrypter()->decrypt($decoded);
+ return service('encrypter')->decrypt($decoded);
49
50
51
public static function set(
@@ -62,6 +61,6 @@ public static function set(
62
61
throw CastException::forInvalidEncryptedValueType();
63
64
65
- return base64_encode(Services::encrypter()->encrypt($value));
+ return base64_encode(service('encrypter')->encrypt($value));
66
67
0 commit comments