StaticController   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 10
rs 10
c 0
b 0
f 0
wmc 1

1 Method

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