File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ Yii Framework 2 authclient extension Change Log
4
4
2.2.16 under development
5
5
------------------------
6
6
7
- - no changes in this release.
7
+ - Enh # 387 : Use appropriate exception if client does not exist (eluhr)
8
8
9
9
10
10
2.2.15 December 16, 2023
Original file line number Diff line number Diff line change 8
8
namespace yii \authclient ;
9
9
10
10
use yii \base \Component ;
11
- use yii \base \InvalidParamException ;
11
+ use yii \base \InvalidArgumentException ;
12
12
use Yii ;
13
13
14
14
/**
@@ -81,12 +81,12 @@ public function getClients()
81
81
/**
82
82
* @param string $id service id.
83
83
* @return ClientInterface auth client instance.
84
- * @throws InvalidParamException on non existing client request.
84
+ * @throws InvalidArgumentException on non existing client request.
85
85
*/
86
86
public function getClient ($ id )
87
87
{
88
88
if (!array_key_exists ($ id , $ this ->_clients )) {
89
- throw new InvalidParamException ("Unknown auth client ' {$ id }'. " );
89
+ throw new InvalidArgumentException ("Unknown auth client ' {$ id }'. " );
90
90
}
91
91
if (!is_object ($ this ->_clients [$ id ])) {
92
92
$ this ->_clients [$ id ] = $ this ->createClient ($ id , $ this ->_clients [$ id ]);
You can’t perform that action at this time.
0 commit comments