Completed
Branch develop (656ecc)
by Janusz
10:43 queued 06:18
created

VoiceController   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
dl 0
loc 18
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A defaultAction() 0 3 1
1
<?php
2
3
namespace FlyingColours\TwilioTwoFactorBundle\Controller;
4
5
use Symfony\Bundle\FrameworkBundle\Templating\EngineInterface;
6
7
class VoiceController
8
{
9
    /** @var EngineInterface */
10
    private $templating;
11
12
    /**
13
     * VoiceController constructor.
14
     *
15
     * @param EngineInterface $templating
16
     */
17
    public function __construct(EngineInterface $templating)
18
    {
19
        $this->templating = $templating;
20
    }
21
22
    public function defaultAction()
23
    {
24
        return $this->templating->renderResponse('@FlyingColoursTwilioTwoFactor/voice/default.xml.twig');
25
    }
26
}