Skip to content

Commit

Permalink
+ DefaultGoal::options() for allowing to set public members with --op…
Browse files Browse the repository at this point in the history
…tion=value
  • Loading branch information
hiqsol committed Sep 8, 2015
1 parent f840ce3 commit de455b9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/goals/DefaultGoal.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,11 @@ public function runActions($actions)
return $result;
}

public function options($actionId)
{
return array_merge(parent::options($actionId), array_keys(Helper::getPublicVars(get_called_class())));
}

public function getRobo()
{
return Yii::$app->get('robo');
Expand Down

0 comments on commit de455b9

Please sign in to comment.