Completed
Push — develop ( 4d770d...ad4c76 )
by Alexander
04:37
created

ConfigProvider   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 36
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
B __invoke() 0 33 1
1
<?php
2
3
namespace AtDataGrid;
4
5
use AtDataGrid\View\Helper\QueryParams;
6
use AtDataGrid\View\Helper\RowAction;
7
8
class ConfigProvider
9
{
10
    public function __invoke()
11
    {
12
        return [
13
            'dependencies' => [
14
                'factories' => [
15
                    \AtDataGrid\Form\FormBuilder::class => \AtDataGrid\Form\FormBuilderFactory::class
16
                ],
17
            ],
18
19
            'templates' => [
20
                'paths' => [
21
                    __DIR__ . '/../view',
22
                ],
23
            ],
24
25
            'view_helpers' => [
26
                'invokables' => [
27
                    'rowAction' => RowAction::class,
28
                    'queryParams' => QueryParams::class,
29
                ],
30
            ],
31
32
            'translator' => [
33
                'translation_file_patterns' => [
34
                    [
35
                        'type'     => 'gettext',
36
                        'base_dir' => __DIR__ . '/../language',
37
                        'pattern'  => '%s.mo',
38
                    ],
39
                ],
40
            ],
41
        ];
42
    }
43
}
44