Passed
Push — master ( 9f96f6...0f86e3 )
by Dev
12:11 queued 07:09
created

StaticController   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 10
ccs 0
cts 4
cp 0
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A generateStatic() 0 5 1
1
<?php
2
3
namespace PiedWeb\CMSBundle\Controller;
4
5
use PiedWeb\CMSBundle\Service\StaticService;
6
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Security;
7
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
8
9
class StaticController extends AbstractController
10
{
11
    /**
12
     * @Security("is_granted('ROLE_EDITOR')")
13
     */
14
    public function generateStatic(StaticService $static)
15
    {
16
        $static->dump();
17
18
        return $this->render('@PiedWebCMS/admin/static.html.twig');
19
    }
20
}
21