Completed
Push — 2.1 ( c23fe5...78dbd5 )
by David
14s
created

ApplyAllPatchesCommand   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A configure() 0 17 1
A execute() 0 4 1
1
<?php
2
namespace Mouf\Utils\Patcher\Commands;
3
4
use Mouf\Utils\Patcher\PatchInterface;
5
use Mouf\Utils\Patcher\PatchService;
6
use Symfony\Component\Console\Helper\Table;
7
use Symfony\Component\Console\Input\InputArgument;
8
use Symfony\Component\Console\Input\InputOption;
9
use Symfony\Component\Console\Output\OutputInterface;
10
use Symfony\Component\Console\Input\InputInterface;
11
use Symfony\Component\Console\Command\Command;
12
13
/**
14
 * Command to apply all patches
15
 */
16
class ApplyAllPatchesCommand extends AbstractApplyAllCommand
17
{
18
19
20
    /**
21
     * {@inheritdoc}
22
     */
23
    protected function configure()
24
    {
25
        $this
26
        ->setName('patches:apply-all')
27
        ->setDescription('Apply pending patches.')
28
        ->setDefinition(array(
29
30
        ))
31
        ->setHelp(<<<EOT
32
Apply pending patches. You can select the type of patches to be applied using the options. Default patches are always applied.
33
34
Use patches:apply if you want to cherry-pick a particular patch.
35
EOT
36
        );
37
38
        $this->registerOptions();
39
    }
40
41
    /**
42
     * {@inheritdoc}
43
     */
44
    protected function execute(InputInterface $input, OutputInterface $output)
45
    {
46
        $this->applyAll($input, $output);
47
    }
48
}
49