Completed
Push — master ( 76ac09...8c1d79 )
by Aimeos
04:15
created

BasketController::relatedComponentAction()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
rs 10
cc 1
eloc 2
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 basket related functionality.
18
 *
19
 * @package symfony
20
 * @subpackage Controller
21
 */
22
class BasketController extends AbstractController
23
{
24
	/**
25
	 * Returns the html for the standard basket page.
26
	 *
27
	 * @return Response Response object containing the generated output
28
	 */
29
	public function indexAction()
30
	{
31
		$params = $this->get( 'aimeos_page' )->getSections( 'basket-index' );
32
		return $this->render( 'AimeosShopBundle:Basket:index.html.twig', $params );
33
	}
34
35
	/**
36
	 * Returns the output of the basket mini component
37
	 *
38
	 * @return Response Response object containing the generated output
39
	 */
40
	public function miniComponentAction()
41
	{
42
		return $this->getOutput( 'basket/mini' );
43
	}
44
45
46
	/**
47
	 * Returns the output of the basket related component
48
	 *
49
	 * @return Response Response object containing the generated output
50
	 */
51
	public function relatedComponentAction()
52
	{
53
		return $this->getOutput( 'basket/related' );
54
	}
55
56
57
	/**
58
	 * Returns the output of the basket standard component
59
	 *
60
	 * @return Response Response object containing the generated output
61
	 */
62
	public function standardComponentAction()
63
	{
64
		return $this->getOutput( 'basket/standard' );
65
	}
66
}
67