let say we are in a Handler class of a webhook
class ProductsHandler implements Handler
{
public function handle(string $topic, string $shop, array $body): void{
switch ($topic) {
case Topics::PRODUCTS_CREATE: {
// how to get a session instance here so we can perform shopify api call
//
// $session = ?
//$client = new Rest($session->getShop(), $session->getAccessToken());
}
}
}
}