From 18cf216b428217d6edc3d6b2561a87affde55091 Mon Sep 17 00:00:00 2001 From: "cameron.spanos" Date: Fri, 9 Feb 2024 12:30:23 -0700 Subject: [PATCH] Make it so you can update the host to use sandbox. Revome the hardcoded const. The config already has the host set. Now we can use the setHost method to switch to sandbox host. --- src/Walmart.php | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/Walmart.php b/src/Walmart.php index b5a4919a..f5df5c00 100644 --- a/src/Walmart.php +++ b/src/Walmart.php @@ -30,11 +30,6 @@ abstract class Walmart { public const VERSION = '0.7.0'; - /** - * The base URL for all API requests. This can be overridden in child classes. - */ - public const HOST = 'https://marketplace.walmartapis.com'; - /** * The configuration for this client. * @var Configuration @@ -64,8 +59,6 @@ public function __construct(Configuration $config, protected bool $clone = true) } else { $this->config = $config; } - - $config->setHost(static::HOST); } /**