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

AbstractAdminMenuBuilder   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 9 1
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