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