OrderController::showAction()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
c 0
b 0
f 0
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
3
namespace AppBundle\Controller;
4
5
use AppBundle\Entity\Order;
6
use Sensio\Bundle\FrameworkExtraBundle\Configuration\ParamConverter;
7
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
8
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
9
10
class OrderController extends Controller
11
{
12
    /**
13
     * @Route(path="/order/{id}", methods="GET", name="order_show")
14
     * @ParamConverter
15
     */
16
    public function showAction(Order $order)
17
    {
18
        return $this->render('order/show.html.twig', array(
19
            'order' => $order
20
        ));
21
    }
22
}
23