Completed
Pull Request — master (#136)
by
unknown
12:23
created

PerformanceEventCRUDController   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 3

Importance

Changes 0
Metric Value
dl 0
loc 15
rs 10
c 0
b 0
f 0
wmc 1
lcom 1
cbo 3

1 Method

Rating   Name   Duplication   Size   Complexity  
A getVenueAction() 0 9 1
1
<?php
2
3
namespace AppBundle\Controller;
4
5
use Sonata\AdminBundle\Controller\CRUDController;
6
use Symfony\Component\HttpFoundation\Response;
7
8
class PerformanceEventCRUDController extends CRUDController
9
{
10
    /**
11
     * @return Response
12
     */
13
    public function getVenueAction()
14
    {
15
        $id = $this->get('request')->query->get('id');
16
        $venue = $this->getDoctrine()->getRepository('AppBundle:Venue')->find($id);
17
18
        return $this->render('AppBundle:PerformanceEventCRUD:venue.html.twig', [
19
            'venue' => $venue,
20
        ]);
21
    }
22
}
23