File tree Expand file tree Collapse file tree 3 files changed +10
-2
lines changed Expand file tree Collapse file tree 3 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 10
10
use Yii ;
11
11
use yii \base \Model ;
12
12
use yii \base \Module ;
13
- use yii \console \Controller ;
13
+ use yii \console \Controller as ConsoleController ;
14
14
use yii \db \QueryBuilder ;
15
15
use yii \helpers \Console ;
16
16
use yii \helpers \FileHelper ;
27
27
* @author Alexander Makarov <[email protected] >
28
28
* @since 2.0
29
29
*/
30
- class PhpDocController extends Controller
30
+ class PhpDocController extends ConsoleController
31
31
{
32
32
/**
33
33
* Manually added PHPDoc properties that do not need to be removed or changed.
@@ -40,6 +40,10 @@ class PhpDocController extends Controller
40
40
'response ' ,
41
41
'view ' ,
42
42
],
43
+ ConsoleController::class => [
44
+ 'request ' ,
45
+ 'response ' ,
46
+ ],
43
47
Model::class => [
44
48
'errors ' ,
45
49
],
Original file line number Diff line number Diff line change @@ -24,6 +24,8 @@ Yii Framework 2 Change Log
24
24
- Bug #20485 : Fix error ` Cannot unset string offsets ` in ` yii\di\Instance:ensure(['__class' => ...], 'some\class\name') ` (max-s-lab)
25
25
- Enh #20505 : ` ArrayDataProvider ` key handling with flexible path support (fetus-hina)
26
26
- Bug #20508 : Fix PHPDoc, add PHPStan/Psalm annotations for ` yii\web\CookieCollection::getIterator ` . Add missing ` @property ` annotation in ` yii\base\Model ` (max-s-lab)
27
+ - Enh #20514 : Add ` @property ` annotations for ` yii\console\Controller ` (max-s-lab)
28
+
27
29
28
30
2.0.53 June 27, 2025
29
31
--------------------
Original file line number Diff line number Diff line change 28
28
* where `<route>` is a route to a controller action and the params will be populated as properties of a command.
29
29
* See [[options()]] for details.
30
30
*
31
+ * @property Request $request The request object.
32
+ * @property Response $response The response object.
31
33
* @property-read string $help The help information for this controller.
32
34
* @property-read string $helpSummary The one-line short summary describing this controller.
33
35
* @property-read array $passedOptionValues The properties corresponding to the passed options.
You can’t perform that action at this time.
0 commit comments