Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 0dc2d7e

Browse filesBrowse files
committed
Make sure you dont use the phpseclibEncryption without the package installed
1 parent 005d1bf commit 0dc2d7e
Copy full SHA for 0dc2d7e

File tree

Expand file treeCollapse file tree

1 file changed

+4
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-0
lines changed

‎src/Symfony/Component/Security/Core/Encryption/PhpseclibEncryption.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Security/Core/Encryption/PhpseclibEncryption.php
+4Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@
1919
use Symfony\Component\Security\Core\Exception\UnsupportedAlgorithmException;
2020
use Symfony\Component\Security\Core\Exception\WrongEncryptionKeyException;
2121

22+
if (!class_exists(RSA::class)) {
23+
throw new \LogicException('You cannot use "Symfony\Component\Security\Core\Encryption\PhpseclibEncryption" as the "phpseclib/phpseclib:2.x" package is not installed. Try running "composer require phpseclib/phpseclib:^2".');
24+
}
25+
2226
/**
2327
* The secret key length should be 32 bytes, but other sizes are accepted.
2428
*

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.