Beispiel #1
0
 /**
  * Init the adapter.
  */
 protected function init()
 {
     $this->run();
     //if the canonical url is different, repeat the proccess
     $canonical = $this->getUrl();
     if ($this->request->getUrl() !== $canonical) {
         $request = $this->request->withUrl($canonical);
         if ($request->isValid()) {
             $this->request = $request;
             $this->run();
         }
     }
 }