Skip to content

Commit

Permalink
feat: add emulator support for pubsub clients
Browse files Browse the repository at this point in the history
  • Loading branch information
bshaffer committed Nov 14, 2024
1 parent 7946006 commit 1c5c63a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Generation/EmulatorSupportGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ class EmulatorSupportGenerator
'\Google\Cloud\Bigtable\Admin\V2\Client\BigtableInstanceAdminClient' => 'BIGTABLE_EMULATOR_HOST',
'\Google\Cloud\Bigtable\Admin\V2\Client\BigtableTableAdminClient' => 'BIGTABLE_EMULATOR_HOST',
'\Google\Cloud\Bigtable\V2\Client\BigtableClient' => 'BIGTABLE_EMULATOR_HOST',
'\Google\Cloud\PubSub\V1\Client\PublisherClient' => 'PUBSUB_EMULATOR_HOST',
'\Google\Cloud\PubSub\V1\Client\SubscriberClient' => 'PUBSUB_EMULATOR_HOST',
'\Google\Cloud\PubSub\V1\Client\SchemaServiceClient' => 'PUBSUB_EMULATOR_HOST',
// Added for unittesting
'\Testing\Basic\Client\BasicClient' => 'BASIC_EMULATOR_HOST'
];
Expand Down

0 comments on commit 1c5c63a

Please sign in to comment.