ExecuteBlock   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Dependencies 3

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A assemble() 0 16 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\Execute;
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 ExecuteBlock extends AbstractBlock
22
{
23
    /**
24
     * {@inheritDoc}
25
     */
26
    public function assemble(array $config, ContainerBuilder $container)
27
    {
28
        $this->addTask('bldr_execute.execute', 'Bldr\Block\Execute\Task\ExecuteTask');
29
        $this->addTask('bldr_execute.parallel', 'Bldr\Block\Execute\Task\ParallelTask');
30
        $this->addTask('bldr_execute.apply', 'Bldr\Block\Execute\Task\ApplyTask');
31
32
        $this->addService('bldr_execute.service.background', 'Bldr\Block\Execute\Service\BackgroundService')
33
            ->setPublic(false)
34
        ;
35
36
        $this->addTask(
37
            'bldr_execute.background',
38
            'Bldr\Block\Execute\Task\BackgroundTask',
39
            [new Reference('bldr_execute.service.background')]
40
        );
41
    }
42
}
43