RestController   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A indexAction() 0 4 1
1
<?php
2
3
namespace As3\Bundle\ModlrBundle\Controller;
4
5
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
6
use Symfony\Component\HttpFoundation\Request;
7
use Symfony\Component\HttpFoundation\Response;
8
9
/**
10
 * The REST API controller for handling all Modlr requests.
11
 *
12
 * @author  Jacob Bare <[email protected]>
13
 */
14
class RestController extends Controller
15
{
16
    /**
17
     * Handles all RESTful API requests.
18
     *
19
     * @param   Request     $request
20
     * @return  Response
21
     */
22
    public function indexAction(Request $request)
23
    {
24
        return $this->get('as3_modlr.rest.kernel')->handle($request);
25
    }
26
}
27