Completed
Branch erdiko2 (81b309)
by John
02:13
created

Rest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A determineAction() 0 6 1
1
<?php
2
/**
3
 * REST Controller
4
 * Simple convention based REST controller to auto route controllers & actions
5
 *
6
 * @package     erdiko/controllers
7
 * @copyright   2012-2017 Arroyo Labs, Inc. http://www.arroyolabs.com
8
 * @author      John Arroyo <[email protected]>
9
 */
10
namespace erdiko\controllers;
11
12
13
class Rest extends \erdiko\Controller
14
{
15
    protected function determineAction($request, $args = null)
16
    {
17
        $action = strtolower($request->getMethod());
18
        $this->container->logger->debug("action: {$action}");
19
        $this->container->logger->debug("args: ".print_r($args, true));
20
    }
21
}
22