]> git.mxchange.org Git - hub.git/blobdiff - application/hub/main/tasks/crawler/url_source/class_CrawlerUrlSource
Continued with crawler:
[hub.git] / application / hub / main / tasks / crawler / url_source / class_CrawlerUrlSource
index 48a6a42c89dbc5e29a5f284eca860135f9ce99e5..284cf5d322486dfdeaa42b1c13e143f0e23d7051 100644 (file)
@@ -63,8 +63,20 @@ class CrawlerUrlSource???Task extends BaseUrlSourceTask implements Taskable, Vis
         * @return      void
         */
        public function executeTask () {
-               // Get the URL source instance and announce us
-               UrlSourceObjectFactory::createUrlSourceInstance($this)->processStack();
+               // Get source instance
+               $sourceInstance = $this->getUrlSourceInstance();
+
+               // Is it not set?
+               if (is_null($sourceInstance)) {
+                       // Initialize it
+                       $this->initUrlSourceTask();
+
+                       // And re-get it
+                       $sourceInstance = $this->getUrlSourceInstance();
+               } // END - if
+
+               // Get the URL source instance and fill the stack with crawl entries
+               $sourceInstance->fillUrlStack();
        }
 }