|
|
@ -9,21 +9,21 @@ namespace app\commands; |
|
|
|
use yii\console\Controller; |
|
|
|
use yii\console\Controller; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* This command echos what the first argument that you have entered. |
|
|
|
* This command echoes what the first argument that you have entered. |
|
|
|
* |
|
|
|
* |
|
|
|
* This command is provided as an example for you to learn how to create console commands. |
|
|
|
* This command is provided as an example for you to learn how to create console commands. |
|
|
|
* |
|
|
|
* |
|
|
|
* @author Qiang Xue <qiang.xue@gmail.com> |
|
|
|
* @author Qiang Xue <qiang.xue@gmail.com> |
|
|
|
* @since 2.0 |
|
|
|
* @since 2.0 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
class HelloController extends Controller |
|
|
|
class HelloController extends Controller |
|
|
|
{ |
|
|
|
{ |
|
|
|
/** |
|
|
|
/** |
|
|
|
* This command echos what you have entered as the message. |
|
|
|
* This command echoes what you have entered as the message. |
|
|
|
* @param string $message the message to be echoed. |
|
|
|
* @param string $message the message to be echoed. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public function actionIndex($message = 'hello world') |
|
|
|
public function actionIndex($message = 'hello world') |
|
|
|
{ |
|
|
|
{ |
|
|
|
echo $message."\n"; |
|
|
|
echo $message."\n"; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|