From 306171b5820b5d1c7b32ff8ad1a1819b190ef827 Mon Sep 17 00:00:00 2001 From: Sergei Predvoditelev Date: Sun, 1 Nov 2020 17:38:32 +0300 Subject: [PATCH] Add phpdoc for properties "request" and "response" in web and console controllers (#18361) --- framework/console/Controller.php | 2 ++ framework/web/Controller.php | 3 +++ 2 files changed, 5 insertions(+) diff --git a/framework/console/Controller.php b/framework/console/Controller.php index 3b9e013b02..69d876cc66 100644 --- a/framework/console/Controller.php +++ b/framework/console/Controller.php @@ -34,6 +34,8 @@ use yii\helpers\Inflector; * read-only. * @property array $passedOptions The names of the options passed during execution. This property is * read-only. + * @property-read Request $request + * @property-read Response $response * * @author Qiang Xue * @since 2.0 diff --git a/framework/web/Controller.php b/framework/web/Controller.php index 55b60b13b0..3c1794b310 100644 --- a/framework/web/Controller.php +++ b/framework/web/Controller.php @@ -17,6 +17,9 @@ use yii\helpers\Url; * * For more details and usage information on Controller, see the [guide article on controllers](guide:structure-controllers). * + * @property-read Request $request + * @property-read Response $response + * * @author Qiang Xue * @since 2.0 */