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

ApplyAllPatchesCommand::execute()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 1 Features 0
Metric Value
dl 0
loc 4
rs 10
c 1
b 1
f 0
cc 1
eloc 2
nc 1
nop 2
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