|
@@ 56-65 (lines=10) @@
|
| 53 |
|
* @param string $feature |
| 54 |
|
* @return RedirectResponse |
| 55 |
|
*/ |
| 56 |
|
public function incrementPercentageAction($feature) |
| 57 |
|
{ |
| 58 |
|
$rollout = $this->getRollout(); |
| 59 |
|
$percentage = $rollout->get($feature)->getPercentage() + 10; |
| 60 |
|
$rollout->activatePercentage($feature, $percentage); |
| 61 |
|
|
| 62 |
|
$this->addFlash('info', sprintf("Feature '%s' percentage changed to %d%% of all users", $feature, $percentage)); |
| 63 |
|
|
| 64 |
|
return $this->createRedirectToFeatureListReponse(); |
| 65 |
|
} |
| 66 |
|
|
| 67 |
|
/** |
| 68 |
|
* @param string $feature |
|
@@ 71-80 (lines=10) @@
|
| 68 |
|
* @param string $feature |
| 69 |
|
* @return RedirectResponse |
| 70 |
|
*/ |
| 71 |
|
public function decrementPercentageAction($feature) |
| 72 |
|
{ |
| 73 |
|
$rollout = $this->getRollout(); |
| 74 |
|
$percentage = $rollout->get($feature)->getPercentage() - 10; |
| 75 |
|
$rollout->activatePercentage($feature, $percentage); |
| 76 |
|
|
| 77 |
|
$this->addFlash('info', sprintf("Feature '%s' percentage changed to %d%% of all users", $feature, $percentage)); |
| 78 |
|
|
| 79 |
|
return $this->createRedirectToFeatureListReponse(); |
| 80 |
|
} |
| 81 |
|
|
| 82 |
|
/** |
| 83 |
|
* @param string $feature |