Completed
Push — master ( 12ace7...d998d0 )
by Kamil
35:58
created

AbstractAdminMenuBuilder::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 9
rs 9.6666
cc 1
eloc 6
nc 1
nop 3
1
<?php
2
3
/*
4
 * This file is part of the Sylius package.
5
 *
6
 * (c) Paweł Jędrzejewski
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Sylius\Bundle\AdminBundle\Menu;
13
14
use Knp\Menu\FactoryInterface;
15
use Sylius\Bundle\UiBundle\Menu\AbstractMenuBuilder;
16
use Sylius\Component\Rbac\Authorization\AuthorizationCheckerInterface;
17
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
18
19
/**
20
 * @author Paweł Jędrzejewski <[email protected]>
21
 */
22
abstract class AbstractAdminMenuBuilder extends AbstractMenuBuilder
23
{
24
    /**
25
     * @var AuthorizationCheckerInterface
26
     */
27
    protected $authorizationChecker;
28
29
    /**
30
     * @param FactoryInterface $factory
31
     * @param EventDispatcherInterface $eventDispatcher
32
     * @param AuthorizationCheckerInterface $authorizationChecker
33
     */
34
    public function __construct(
35
        FactoryInterface $factory,
36
        EventDispatcherInterface $eventDispatcher,
37
        AuthorizationCheckerInterface $authorizationChecker
38
    ) {
39
        parent::__construct($factory, $eventDispatcher);
40
41
        $this->authorizationChecker = $authorizationChecker;
42
    }
43
}
44