Completed
Push — compat-sf4 ( d499cf...2c998b )
by Kevin
01:40
created

ReindexIndexCommand   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 2
dl 0
loc 16
ccs 0
cts 6
cp 0
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A configure() 0 4 1
A execute() 0 6 1
1
<?php
2
3
namespace Zenstruck\ElasticaBundle\Command;
4
5
use Symfony\Component\Console\Input\InputInterface;
6
use Symfony\Component\Console\Output\OutputInterface;
7
8
/**
9
 * @author Kevin Bond <[email protected]>
10
 */
11
class ReindexIndexCommand extends IndexCommand
12
{
13
    protected static $defaultName = 'zenstruck:elastica:reindex';
14
15
    protected function configure()
16
    {
17
        $this->setDescription('Reindex the elasticsearch index.');
18
    }
19
20
    protected function execute(InputInterface $input, OutputInterface $output)
21
    {
22
        $this->indexManager->reindex();
23
24
        return 0;
25
    }
26
}
27