Completed
Push — master ( 18bc97...e7bdcd )
by Yaroslav
09:10
created

Controller::staticPathAction()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
/*
4
 *
5
 * (c) Yaroslav Honcharuk <[email protected]>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
11
namespace Yarhon\RouteGuardBundle\Tests\Functional\Bundle\SymfonyAccessControlBundle\Controller;
12
13
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
14
use Symfony\Component\Routing\Annotation\Route;
15
use Symfony\Component\HttpFoundation\Request;
16
use Symfony\Component\HttpFoundation\Response;
17
18
/**
19
 * @author Yaroslav Honcharuk <[email protected]>
20
 */
21
class Controller extends AbstractController
22
{
23
    /**
24
     * @Route("/public", name="public")
25
     */
26
    public function publicAction()
27
    {
28
        return new Response('');
29
    }
30
31
    /**
32
     * @Route("/static_path", name="static_path")
33
     */
34
    public function staticPathAction()
35
    {
36
        return new Response('');
37
    }
38
39
    /**
40
     * @Route("/dynamic_path/{page}", name="dynamic_path")
41
     */
42
    public function dynamicPathAction()
43
    {
44
        return new Response('');
45
    }
46
}
47