Completed
Push — master ( 0fb6c2...a0d538 )
by Adam
19:02
created

WellCommerceShipmentBundle   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 4

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 4
dl 0
loc 13
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A build() 0 5 1
A registerBundles() 0 4 1
1
<?php
2
/**
3
 * WellCommerce Open-Source E-Commerce Platform
4
 *
5
 * This file is part of the WellCommerce package.
6
 *
7
 * (c) Adam Piotrowski <[email protected]>
8
 *
9
 * For the full copyright and license information,
10
 * please view the LICENSE file that was distributed with this source code.
11
 */
12
13
namespace WellCommerce\Bundle\ShipmentBundle;
14
15
use Doctrine\Common\Collections\Collection;
16
use Symfony\Component\DependencyInjection\ContainerBuilder;
17
use WellCommerce\Bundle\CoreBundle\HttpKernel\AbstractWellCommerceBundle;
18
use WellCommerce\Bundle\ShipmentBundle\DependencyInjection\Compiler\RegisterShipmentAdapterPass;
19
20
/**
21
 * Class WellCommerceShipmentBundle
22
 *
23
 * @author  Adam Piotrowski <[email protected]>
24
 */
25
final class WellCommerceShipmentBundle extends AbstractWellCommerceBundle
26
{
27
    public function build(ContainerBuilder $container)
28
    {
29
        parent::build($container);
30
        $container->addCompilerPass(new RegisterShipmentAdapterPass());
31
    }
32
    
33
    public static function registerBundles(Collection $bundles, string $environment)
34
    {
35
        $bundles->add(new self());
36
    }
37
}
38