Completed
Push — master ( c458f8...eeebc2 )
by Matze
06:56
created

Config::config()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %
Metric Value
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace BrainExe\Core\Index;
4
5
use BrainExe\Annotations\Annotations\Inject;
6
use BrainExe\Core\Annotations\Controller as ControllerAnnotation;
7
use BrainExe\Core\Annotations\Guest;
8
use BrainExe\Core\Annotations\Route;
9
use Symfony\Component\HttpFoundation\Response;
10
11
/**
12
 * @ControllerAnnotation("Core.Index.Config")
13
 */
14
class Config
15
{
16
    /**
17
     * @var array
18
     */
19
    private $config = [];
20
21
    /**
22
     * @Inject({"%config.public%"})
23
     * @param array $config
24
     */
25
    public function __construct(array $config)
26
    {
27
        $this->config = $config;
28
    }
29
30
    /**
31
     * @return mixed[]
32
     * @Route("/config/", name="config")
33
     * @Guest
34
     */
35
    public function config() : array
36
    {
37
        return $this->config;
38
    }
39
}
40