Total Complexity | 3 |
Total Lines | 34 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
23 | class AccountController extends AbstractController |
||
24 | { |
||
25 | /** |
||
26 | * Returns the html for the "My account" page. |
||
27 | * |
||
28 | * @return Response Response object containing the generated output |
||
29 | */ |
||
30 | public function indexAction( \Twig\Environment $twig ) : Response |
||
31 | { |
||
32 | $params = []; |
||
33 | $shop = $this->container->get( 'shop' ); |
||
34 | |||
35 | foreach( $this->container->getParameter( 'aimeos_shop.page' )['account-index'] as $name ) |
||
|
|||
36 | { |
||
37 | $params['aiheader'][$name] = $shop->get( $name )->header(); |
||
38 | $params['aibody'][$name] = $shop->get( $name )->body(); |
||
39 | } |
||
40 | |||
41 | return new Response( |
||
42 | $twig->render( '@AimeosShop/Account/index.html.twig', $params ), |
||
43 | 200, ['Cache-Control' => 'no-store, , max-age=0'] |
||
44 | ); |
||
45 | } |
||
46 | |||
47 | |||
48 | /** |
||
49 | * Returns the html for the "My account" download page. |
||
50 | * |
||
51 | * @return Response Response object containing the generated output |
||
52 | */ |
||
53 | public function downloadAction() : Response |
||
57 | } |
||
58 | } |
||
59 |