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

StaticController::generateStatic()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 5
ccs 0
cts 4
cp 0
crap 2
rs 10
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