File tree Expand file tree Collapse file tree 3 files changed +43
-18
lines changed
src/Codeception/Lib/Connector Expand file tree Collapse file tree 3 files changed +43
-18
lines changed Original file line number Diff line number Diff line change @@ -231,19 +231,6 @@ public function clearEmails(): void
231
231
$ this ->emails = [];
232
232
}
233
233
234
- /**
235
- * @internal
236
- */
237
- public function getComponent (string $ name ): object |null
238
- {
239
- $ app = $ this ->getApplication ();
240
- $ result = $ app ->get ($ name , false );
241
- if (! isset ($ result )) {
242
- throw new ConfigurationException ("Component $ name is not available in current application " );
243
- }
244
- return $ result ;
245
- }
246
-
247
234
/**
248
235
* Getting domain regex from rule host template
249
236
*/
Original file line number Diff line number Diff line change 13
13
/**
14
14
* Class ConnectionWatcher
15
15
* This class will watch for new database connection and store a reference to the connection object.
16
- *
17
- * @package Codeception\Lib\Connector\Yii2
16
+ * @internal
18
17
*/
19
- final class ConnectionWatcher
18
+ class ConnectionWatcher
20
19
{
21
- private Closure $ handler ;
20
+ private readonly Closure $ handler ;
22
21
23
22
/**
24
- * @var Connection[]
23
+ * @var list< Connection>
25
24
*/
26
25
private array $ connections = [];
27
26
Original file line number Diff line number Diff line change @@ -33,6 +33,45 @@ namespace yii\web {
33
33
* @return void
34
34
*/
35
35
public function setBaseUrl($url) {}
36
+
37
+ /**
38
+ * @param array<mixed>|object|null $params
39
+ */
40
+ public function setBodyParams($params): void {}
41
+
42
+ /**
43
+ * @param list<string>|null $params
44
+ */
45
+ public function setAcceptableContentTypes($params): void {}
46
+ /**
47
+ * @param list<string>|null $params
48
+ */
49
+ public function setAcceptableLanguages($params): void {}
50
+
51
+ /**
52
+ * @param string|null $body
53
+ */
54
+ public function setRawBody($body): void {}
55
+
56
+ /**
57
+ * @param string|null $path
58
+ */
59
+ public function setPathInfo($path): void {}
60
+
61
+ /**
62
+ * @param string|null $path
63
+ */
64
+ public function setScriptUrl($path): void {}
65
+
66
+ /**
67
+ * @param string|null $path
68
+ */
69
+ public function setUrl($path): void {}
70
+
71
+ /**
72
+ * @param string|null $path
73
+ */
74
+ public function setScriptFile($path): void {}
36
75
}
37
76
38
77
}
You can’t perform that action at this time.
0 commit comments