public function product($uid)
 {
     if (isset($uid)) {
         $this->productUpdater->updateProduct($uid);
         $products = TableRegistry::get('Products');
         $product = $products->find()->contain(['Companies', 'Prices'])->where(['article_uid' => $uid])->first();
         $amazonHelper = new AmazonHelper();
         $product->review_url = $amazonHelper->getReviewUrl($product->article_uid);
         $isUserLoggedIn = $this->isUserLoggedIn();
         $isItemFollowed = false;
         if ($isUserLoggedIn) {
             $isItemFollowed = $this->isItemFollowed($product);
         }
         $this->set(compact('product', 'isUserLoggedIn', 'isItemFollowed'));
     }
 }
 public function fetchProductFromApi($articleUid)
 {
     $amazon = new AmazonHelper();
     return $amazon->findProduct($articleUid);
 }