Conditions | 2 |
Paths | 2 |
Total Lines | 14 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
30 | public function detailAction() : Response |
||
31 | { |
||
32 | $params = []; |
||
33 | $shop = $this->container->get( 'shop' ); |
||
34 | |||
35 | foreach( $this->container->getParameter( 'aimeos_shop.page' )['supplier-detail'] as $name ) |
||
36 | { |
||
37 | $params['aiheader'][$name] = $shop->get( $name )->getHeader(); |
||
38 | $params['aibody'][$name] = $shop->get( $name )->getBody(); |
||
39 | } |
||
40 | |||
41 | $response = $this->render( '@AimeosShop/Supplier/detail.html.twig', $params ); |
||
42 | $response->headers->set( 'Cache-Control', 'private, max-age=10' ); |
||
43 | return $response; |
||
44 | } |
||
46 |