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