Completed
Push — master ( 1e91bb...cc7294 )
by Aimeos
13:30
created

AccountController::downloadAction()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 5
rs 9.4285
cc 1
eloc 3
nc 1
nop 0
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\Bundle\FrameworkBundle\Controller\Controller;
14
15
16
/**
17
 * Aimeos controller for account related functionality.
18
 *
19
 * @package symfony
20
 * @subpackage Controller
21
 */
22
class AccountController extends Controller
23
{
24
	/**
25
	 * Returns the html for the "My account" page.
26
	 *
27
	 * @return Response Response object containing the generated output
28
	 */
29
	public function indexAction()
30
	{
31
		$params = $this->get( 'aimeos_page' )->getSections( 'account-index' );
32
		return $this->render( 'AimeosShopBundle:Account:index.html.twig', $params );
33
	}
34
35
36
	/**
37
	 * Returns the html for the "My account" download page.
38
	 *
39
	 * @return Response Response object containing the generated output
40
	 */
41
	public function downloadAction()
42
	{
43
		$params = $this->get( 'aimeos_page' )->getSections( 'account-download' );
44
		return $this->render( 'AimeosShopBundle:Account:download.html.twig', $params );
45
	}
46
}
47