Completed
Push — master ( 9e1cca...f6d6d4 )
by Koldo
01:12
created

ConfigProvider::getTemplates()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 6
rs 9.4285
cc 1
eloc 3
nc 1
nop 0
1
<?php
2
3
namespace InFw\Pug;
4
5
use Pug\Pug;
6
7
class ConfigProvider
8
{
9
    public function __invoke()
10
    {
11
        return [
12
            'dependencies' => $this->getDependencies(),
13
            'templates' => $this->getTemplates(),
14
            'pug' => $this->getPugConfig(),
15
        ];
16
    }
17
18
    protected function getDependencies()
19
    {
20
        return [
21
            'factories' => [
22
                Pug::class => PugFactory::class,
23
            ]
24
        ];
25
    }
26
27
    protected function getTemplates()
28
    {
29
        return [
30
            'extension' => 'pug',
31
        ];
32
    }
33
34
    protected function getPugConfig()
35
    {
36
        return [
37
            'pretty' => true,
38
            'expressionLanguage' => 'js',
39
            'pugjs' => false,
40
            'localsJsonFile' => false,
41
            'cache' => 'data/cache/pug',
42
            'template_path' => '',
43
            'globals' => [],
44
            'filters' => [],
45
            'keywords' => [],
46
            'helpers' => []
47
        ];
48
    }
49
}
50