The PlaceService now has an updated constructor.
/**
* @param ClientInterface $client
* @param string|null $googleApiKey
*/
public function __construct(ClientInterface $client, ?string $googleApiKey = null)
{
$this->client = $client;
$this->googleApiKey = $googleApiKey;
}
You can pass in (optionally) a Google api key to be used with your requests.
The setApiKey() method is still available to use, too.