public function getParams($path = null, $default = null) { if (null === $this->params) { $this->params = $this->getParamsStack()->top(); } return parent::getParams($path, $default); }
public function testHelper() { $cmd = new SubCommand('myid', Yii::$app->getModule('unitmodule')); $this->assertEquals(\luya\Boot::VERSION, $cmd->getLuyaVersion()); }
public static function enableEcho() { self::$shouldEcho = true; }
public function __construct(CommandInterface $command, \SplStack $results) { parent::__construct($command); $this->results = $results; }