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

CreateIndexCommand::execute()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 6
ccs 0
cts 3
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 2
crap 2
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 CreateIndexCommand extends IndexCommand
12
{
13
    protected static $defaultName = 'zenstruck:elastica:create';
14
15
    protected function configure()
16
    {
17
        $this->setDescription('Create and populate the elasticsearch index.');
18
    }
19
20
    protected function execute(InputInterface $input, OutputInterface $output)
21
    {
22
        $this->indexManager->create();
23
24
        return 0;
25
    }
26
}
27