Completed
Push — master ( 635f13...3b2a71 )
by Axel
37:58 queued 21:55
created

AbstractController::renderResponse()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 2
eloc 4
nc 2
nop 3
dl 0
loc 8
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * This file is part of the Zikula package.
7
 *
8
 * Copyright Zikula Foundation - https://ziku.la/
9
 *
10
 * For the full copyright and license information, please view the LICENSE
11
 * file that was distributed with this source code.
12
 */
13
14
namespace Zikula\Bundle\CoreInstallerBundle\Controller;
15
16
use Symfony\Component\DependencyInjection\ContainerInterface;
17
use Symfony\Component\Form\Form;
18
use Symfony\Component\Routing\RouterInterface;
19
use Symfony\Contracts\Translation\TranslatorInterface;
20
use Zikula\Bundle\CoreInstallerBundle\Helper\ControllerHelper;
21
22
/**
23
 * Class AbstractController
24
 */
25
abstract class AbstractController
26
{
27
    /**
28
     * @var ContainerInterface
29
     */
30
    protected $container;
31
32
    /**
33
     * @var ControllerHelper
34
     */
35
    protected $controllerHelper;
36
37
    /**
38
     * @var TranslatorInterface
39
     */
40
    protected $translator;
41
42
    /**
43
     * @var Form
44
     */
45
    protected $form;
46
47
    /**
48
     * @var RouterInterface
49
     */
50
    protected $router;
51
52
    public function __construct(ContainerInterface $container)
53
    {
54
        $this->container = $container;
55
        $this->controllerHelper = $container->get(ControllerHelper::class);
56
        $this->translator = $container->get('translator');
57
    }
58
}
59