Commit 975ae92 1 parent b375458 commit 975ae92 Copy full SHA for 975ae92
File tree 1 file changed +12
-1
lines changed
1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ abstract class CamundaModel
10
10
{
11
11
protected $ client ;
12
12
public $ id ;
13
+ public $ key ;
13
14
14
15
public function __construct ($ id = null , $ attributes = [])
15
16
{
@@ -69,6 +70,16 @@ private function buildUrl($url)
69
70
70
71
private function modelUri ()
71
72
{
72
- return kebab_case (class_basename ($ this )) . '/ ' . $ this ->id ;
73
+ if ($ this ->key ) {
74
+ return kebab_case (class_basename ($ this )) . '/key/ ' . $ this ->key . $ this ->tenant ();
75
+ }
76
+ else {
77
+ return kebab_case (class_basename ($ this )) . '/ ' . $ this ->id ;
78
+ }
79
+ }
80
+
81
+ protected function tenant ()
82
+ {
83
+ return strlen (config ('camunda.api.tenant-id ' )) ? '/tenant-id/ ' . config ('camunda.api.tenant-id ' ) : '' ;
73
84
}
74
85
}
You can’t perform that action at this time.
0 commit comments