Code cleanup

- updated deprecated calls
- cleaned up PHPDoc comments
This commit is contained in:
cevou 2013-03-02 12:23:44 +01:00
commit cbe6071969
49 changed files with 199 additions and 103 deletions

View file

@ -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'));