Skip to content

Commit 1d11e68

Browse files
fix(deps): update dependency google/cloud-dialogflow to v1 (GoogleCloudPlatform#1740)
Co-authored-by: Brent Shaffer <[email protected]>
1 parent 28ab916 commit 1d11e68

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

dialogflow/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"require": {
3-
"google/cloud-dialogflow": "^0.28",
3+
"google/cloud-dialogflow": "^1.0",
44
"symfony/console": "^5.0"
55
},
66
"autoload": {

dialogflow/src/entity_create.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
namespace Google\Cloud\Samples\Dialogflow;
2020

2121
use Google\Cloud\Dialogflow\V2\EntityTypesClient;
22-
use Google\Cloud\Dialogflow\V2\EntityType_Entity;
22+
use Google\Cloud\Dialogflow\V2\EntityType\Entity;
2323

2424
/**
2525
* Create an entity of the given entity type.
@@ -37,7 +37,7 @@ function entity_create($projectId, $entityTypeId, $entityValue, $synonyms = [])
3737
$entityTypeId);
3838

3939
// prepare entity
40-
$entity = new EntityType_Entity();
40+
$entity = new Entity();
4141
$entity->setValue($entityValue);
4242
$entity->setSynonyms($synonyms);
4343

0 commit comments

Comments
 (0)