| Total Complexity | 2 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | class RevertHistoryTrickController extends AbstractController |
||
| 18 | { |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var TrickHistory |
||
| 22 | */ |
||
| 23 | private $trickHistory; |
||
| 24 | |||
| 25 | public function __construct(TrickHistory $trickHistory) |
||
| 26 | { |
||
| 27 | $this->trickHistory = $trickHistory; |
||
| 28 | } |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @param $id |
||
| 32 | * @param $historyId |
||
| 33 | * @Route("/trick/revert/{id}/{historyId}", name="trick.revert") |
||
| 34 | * @return \Symfony\Component\HttpFoundation\RedirectResponse |
||
| 35 | */ |
||
| 36 | public function revertHistory(Trick $trick, $historyId) |
||
| 43 | ]); |
||
| 44 | } |
||
| 45 | } |