Completed
Push — master ( e28719...2f5354 )
by Tim
02:17
created

BackendController::listAction()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 10

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 10
rs 9.9332
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
/**
3
 * BackendController
4
 */
5
6
namespace HDNET\Calendarize\Controller;
7
8
/**
9
 * BackendController
10
 */
11
class BackendController extends AbstractController
12
{
13
14
    protected $indexRepository;
15
16
    /**
17
     *
18
     */
19
    public function listAction()
20
    {
21
        $this->settings['timeFormat'] = 'H:i';
22
        $this->settings['dateFormat'] = 'd.m.Y';
23
24
        $this->view->assignMultiple([
25
            'indices' => $this->indexRepository->findAll(),
26
            'settings' => $this->settings,
27
        ]);
28
    }
29
30
}
31