| Total Complexity | 2 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 17 | class VaultController extends AbstractController |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * @Route("/", name="customer-list", methods={"GET"}) |
||
| 21 | * |
||
| 22 | * @return Response |
||
| 23 | */ |
||
| 24 | public function listCustomer(): Response |
||
| 25 | { |
||
| 26 | $customers = $this->braintreeService->getCustomerService()->listCustomers(); |
||
| 27 | return $this->render('braintree/api/vault/list.html.twig', [ |
||
| 28 | 'customers' => $customers |
||
| 29 | ]); |
||
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @Route("/vault/{customerId}", name="customer-get", methods={"GET"}) |
||
| 34 | * |
||
| 35 | * @param $customerId |
||
| 36 | * @return Response |
||
| 37 | * @throws NotFound |
||
| 38 | */ |
||
| 39 | public function getCustomer($customerId): Response |
||
| 45 | ]); |
||
| 46 | } |
||
| 48 |