PageController   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 21
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A termsAction() 0 3 1
A privacyAction() 0 3 1
1
<?php
2
3
/**
4
 * @license MIT, http://opensource.org/licenses/MIT
5
 * @copyright Aimeos (aimeos.org), 2014-2016
6
 * @package symfony
7
 * @subpackage Controller
8
 */
9
10
11
namespace Aimeos\ShopBundle\Controller;
12
13
use Symfony\Component\HttpFoundation\Response;
14
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
15
16
17
/**
18
 * Aimeos controller for all page request.
19
 *
20
 * @package symfony
21
 * @subpackage Controller
22
 */
23
class PageController extends AbstractController
24
{
25
	/**
26
	 * Returns the html for the privacy policy page.
27
	 *
28
	 * @return Response Response object containing the generated output
29
	 */
30
	public function privacyAction( \Twig\Environment $twig ) : Response
31
	{
32
		return $twig->render( '@AimeosShop/Page/privacy.html.twig' );
33
	}
34
35
36
	/**
37
	 * Returns the html for the terms and conditions page.
38
	 *
39
	 * @return Response Response object containing the generated output
40
	 */
41
	public function termsAction( \Twig\Environment $twig ) : Response
42
	{
43
		return $twig->render( '@AimeosShop/Page/terms.html.twig' );
44
	}
45
}
46