|
@@ 64-72 (lines=9) @@
|
| 61 |
|
* |
| 62 |
|
* @return RedirectResponse |
| 63 |
|
*/ |
| 64 |
|
public function incrementPercentageAction(GroupDefinitionAwareRollout $rollout, string $feature) |
| 65 |
|
{ |
| 66 |
|
$percentage = $rollout->get($feature)->getPercentage() + 10; |
| 67 |
|
$rollout->activatePercentage($feature, $percentage); |
| 68 |
|
|
| 69 |
|
$this->addFlash('info', sprintf("Feature '%s' percentage changed to %d%% of all users", $feature, $percentage)); |
| 70 |
|
|
| 71 |
|
return $this->redirectToRoute('opensoft_rollout'); |
| 72 |
|
} |
| 73 |
|
|
| 74 |
|
/** |
| 75 |
|
* @param GroupDefinitionAwareRollout $rollout |
|
@@ 80-88 (lines=9) @@
|
| 77 |
|
* |
| 78 |
|
* @return RedirectResponse |
| 79 |
|
*/ |
| 80 |
|
public function decrementPercentageAction(GroupDefinitionAwareRollout $rollout, string $feature) |
| 81 |
|
{ |
| 82 |
|
$percentage = $rollout->get($feature)->getPercentage() - 10; |
| 83 |
|
$rollout->activatePercentage($feature, $percentage); |
| 84 |
|
|
| 85 |
|
$this->addFlash('info', sprintf("Feature '%s' percentage changed to %d%% of all users", $feature, $percentage)); |
| 86 |
|
|
| 87 |
|
return $this->redirectToRoute('opensoft_rollout'); |
| 88 |
|
} |
| 89 |
|
|
| 90 |
|
/** |
| 91 |
|
* @param GroupDefinitionAwareRollout $rollout |