getRequest() public method

Returns the request component.
public getRequest ( ) : yii\console\Request
return yii\console\Request the request component.
Beispiel #1
0
 /**
  * Returns the log context for a console application
  * @return array
  */
 public function getConsoleContext(\yii\console\Application $app)
 {
     return [['title' => 'Params', 'value' => implode(' ', $app->getRequest()->getParams()), 'short' => true]];
 }