File tree Expand file tree Collapse file tree 2 files changed +23
-2
lines changed
src/Symfony/Component/HttpFoundation Expand file tree Collapse file tree 2 files changed +23
-2
lines changed Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ /*
4
+ * This file is part of the Symfony package.
5
+ *
6
+ * (c) Fabien Potencier <[email protected] >
7
+ *
8
+ * For the full copyright and license information, please view the LICENSE
9
+ * file that was distributed with this source code.
10
+ */
11
+
12
+ namespace Symfony \Component \HttpFoundation \Exception ;
13
+
14
+ /**
15
+ * @author Kevin Bond <[email protected] >
16
+ */
17
+ final class UnSignedUriException extends SignedUriException
18
+ {
19
+ }
Original file line number Diff line number Diff line change 14
14
use Symfony \Component \HttpFoundation \Exception \ExpiredSignedUriException ;
15
15
use Symfony \Component \HttpFoundation \Exception \LogicException ;
16
16
use Symfony \Component \HttpFoundation \Exception \SignedUriException ;
17
+ use Symfony \Component \HttpFoundation \Exception \UnSignedUriException ;
17
18
use Symfony \Component \HttpFoundation \Exception \UnverifiedSignedUriException ;
18
19
19
20
/**
@@ -134,7 +135,8 @@ public function checkRequest(Request $request): bool
134
135
/**
135
136
* Verify a Request/string URI and return a SignedUri object.
136
137
*
137
- * @throws UnverifiedSignedUriException If the URI is not signed or the signature is invalid
138
+ * @throws UnSignedUriException If the URI is not signed
139
+ * @throws UnverifiedSignedUriException If the signature is invalid
138
140
* @throws ExpiredSignedUriException If the URI has expired
139
141
* @throws SignedUriException
140
142
*/
@@ -153,7 +155,7 @@ public function verify(Request|string $uri): SignedUri
153
155
}
154
156
155
157
if (empty ($ params [$ this ->hashParameter ])) {
156
- throw new UnverifiedSignedUriException ($ uri , 'The URI is not signed. ' );
158
+ throw new UnSignedUriException ($ uri , 'The URI is not signed. ' );
157
159
}
158
160
159
161
$ hash = $ params [$ this ->hashParameter ];
You can’t perform that action at this time.
0 commit comments