UpdateAllCommand   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A configure() 0 7 1
A execute() 0 4 1
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