|
@@ 97-104 (lines=8) @@
|
| 94 |
|
* |
| 95 |
|
* @return RedirectResponse |
| 96 |
|
*/ |
| 97 |
|
public function activateGroupAction(GroupDefinitionAwareRollout $rollout, string $feature, string $group) |
| 98 |
|
{ |
| 99 |
|
$rollout->activateGroup($feature, $group); |
| 100 |
|
|
| 101 |
|
$this->addFlash('info', sprintf("Feature '%s' is now active in group '%s'", $feature, $group)); |
| 102 |
|
|
| 103 |
|
return $this->redirectToRoute('opensoft_rollout'); |
| 104 |
|
} |
| 105 |
|
|
| 106 |
|
/** |
| 107 |
|
* @param GroupDefinitionAwareRollout $rollout |
|
@@ 113-120 (lines=8) @@
|
| 110 |
|
* |
| 111 |
|
* @return RedirectResponse |
| 112 |
|
*/ |
| 113 |
|
public function deactivateGroupAction(GroupDefinitionAwareRollout $rollout, string $feature, string $group) |
| 114 |
|
{ |
| 115 |
|
$rollout->deactivateGroup($feature, $group); |
| 116 |
|
|
| 117 |
|
$this->addFlash('info', sprintf("Feature '%s' is no longer active in group '%s'", $feature, $group)); |
| 118 |
|
|
| 119 |
|
return $this->redirectToRoute('opensoft_rollout'); |
| 120 |
|
} |
| 121 |
|
|
| 122 |
|
/** |
| 123 |
|
* @param Request $request |