public function __construct(InterfaceCache $cache, $logger = null, array $config = null)
 {
     $this->cache = $cache;
     $this->logger = $logger;
     //Reader::setCache($cache->getZendCache());
     //Reader::useHttpConditionalGet();
     parent::__construct([], $config);
 }
 /**
  * Recebe a response HTTP e também dados da assinatura,
  * para alimentar os filtros que definem a relevânca do
  * conteúdo.
  *
  * Config:
  *
  *
  * @param array $dependency Logger, Cache, array Config
  **/
 public function __construct($uri, Crawler $crawler, InterfaceSubscription $subscription, $dependency = null)
 {
     $this->crawler = $crawler;
     $this->subscription = $subscription;
     if ($dependency) {
         foreach (['logger', 'cache'] as $k) {
             if (isset($dependency[$k])) {
                 $this->{$k} = $dependency[$k];
             }
         }
     }
     $config = isset($dependency['config']) ? $dependency['config'] : null;
     parent::__construct(['relevancy' => 0, 'uri' => $uri], $config);
     $this->processResponse();
 }