Code cleanup
- updated deprecated calls - cleaned up PHPDoc comments
This commit is contained in:
parent
dea32f9b56
commit
cbe6071969
49 changed files with 199 additions and 103 deletions
|
|
@ -41,6 +41,7 @@ class SearchCommand extends ContainerAwareCommand
|
|||
protected function execute(InputInterface $input, OutputInterface $output)
|
||||
{
|
||||
$indexName = $input->getOption('index');
|
||||
/** @var $index \Elastica_Index */
|
||||
$index = $this->getContainer()->get('foq_elastica.index_manager')->getIndex($indexName ? $indexName : null);
|
||||
$type = $index->getType($input->getArgument('type'));
|
||||
$query = Elastica_Query::create($input->getArgument('query'));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue