WatchBlock   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Dependencies 3

Importance

Changes 0
Metric Value
wmc 1
cbo 3
dl 0
loc 20
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A assemble() 0 14 1
1
<?php
2
3
/**
4
 * This file is part of Bldr.io
5
 *
6
 * (c) Aaron Scherer <[email protected]>
7
 *
8
 * This source file is subject to the MIT license that is bundled
9
 * with this source code in the file LICENSE
10
 */
11
12
namespace Bldr\Block\Watch;
13
14
use Bldr\DependencyInjection\AbstractBlock;
15
use Symfony\Component\DependencyInjection\ContainerBuilder;
16
use Symfony\Component\DependencyInjection\Reference;
17
18
/**
19
 * @author Aaron Scherer <[email protected]>
20
 */
21
class WatchBlock extends AbstractBlock
22
{
23
    /**
24
     * {@inheritDoc}
25
     */
26
    public function assemble(array $config, ContainerBuilder $container)
27
    {
28
        $this->addTask(
29
            'bldr_watch.watch',
30
            'Bldr\Block\Watch\Task\WatchTask',
31
            [
32
                new Reference('bldr.registry.job'),
33
                [
34
                    'profiles' => $container->getParameter('profiles'),
35
                    'jobs'     => $container->getParameter('jobs')
36
                ]
37
            ]
38
        );
39
    }
40
}
41