Command/QueryWikipediaCommand.php
changeset 68 e7384fb35f7a
parent 67 989d9e117586
--- a/Command/QueryWikipediaCommand.php	Mon Dec 26 22:53:50 2011 +0100
+++ b/Command/QueryWikipediaCommand.php	Mon Jan 23 00:48:55 2012 +0100
@@ -24,7 +24,7 @@
     private function processTag($tag, $em)
     {
         $tag_label_normalized = WikiTagUtils::normalizeTag($tag->getLabel());
-        $wp_response = WikiTagUtils::getWikipediaInfo($tag_label_normalized, null, $this->getContainer()->getParameter('wiki_tag.ignore_wikipedia_error'));
+        $wp_response = WikiTagUtils::getWikipediaInfo($tag_label_normalized, null, $this->getContainer()->getParameter('wiki_tag.ignore_wikipedia_error'), $this->getContainer()->get('logger'));
         
         $tag->setWikipediaInfo($wp_response);
         
@@ -45,7 +45,6 @@
             ->addOption("all","a",InputOption::VALUE_NONE, "Search all tags")
             ->addOption("null","n",InputOption::VALUE_NONE, "Treat only non processed tags")
             ->addOption("redirection",null,InputOption::VALUE_NONE, "Treat redirections")
-            ->addOption("random","r",InputOption::VALUE_NONE, "randomize query on tags")
             ->addOption("site","S",InputOption::VALUE_OPTIONAL, "the url for the wikipedia site", "http://fr.wikipedia.org/w/api.php")
             ->addOption("limit","l",InputOption::VALUE_OPTIONAL, "number of tag to process", -1)
             ->addOption("start",null,InputOption::VALUE_OPTIONAL, "number of tag to ignore", 0);
@@ -56,7 +55,6 @@
         
         $force = $input->getOption('force');
         $all = $input->getOption('all');
-        $random = $input->getOption('random');
         $redirection = $input->getOption('redirection');
         $site = $input->getOption('site');
         $limit = intval($input->getOption('limit'));