UpdateAllCommand::execute()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 2
Metric Value
c 2
b 0
f 2
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 2
1
<?php
2
3
namespace kujaff\VersionsBundle\Command;
4
5
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
6
use Symfony\Component\Console\Input\InputInterface;
7
use Symfony\Component\Console\Output\OutputInterface;
8
9
/**
10
 * Update all bundles
11
 */
12
class UpdateAllCommand extends ContainerAwareCommand
13
{
14
15
    /**
16
     * {@inherited}
17
     */
18
    protected function configure()
19
    {
20
        $this
21
            ->setName('bundle:update:all')
22
            ->setDescription('Update all versionned bundles who are not already updated')
23
        ;
24
    }
25
26
    /**
27
     * {@inherited}
28
     */
29
    protected function execute(InputInterface $input, OutputInterface $output)
30
    {
31
        $this->getContainer()->get('versions.installer')->updateAll($output);
32
    }
33
}
34