@@ -84,7 +84,7 @@ |
||
| 84 | 84 | 'kind' => 'Job', |
| 85 | 85 | 'namespace' => $this->namespace->getName(), |
| 86 | 86 | 'data' => $this->getData(), |
| 87 | - 'status' => function () use ($resource, $scheduler) { |
|
| 87 | + 'status' => function() use ($resource, $scheduler) { |
|
| 88 | 88 | $process = iterator_to_array($scheduler->getJobs([ |
| 89 | 89 | 'data.job' => $resource->getName(), |
| 90 | 90 | 'data.parent' => ['$exists' => false], |
@@ -47,7 +47,7 @@ |
||
| 47 | 47 | 'kind' => 'Secret', |
| 48 | 48 | 'namespace' => $this->namespace->getName(), |
| 49 | 49 | 'data' => $this->getData(), |
| 50 | - ]; |
|
| 50 | + ]; |
|
| 51 | 51 | |
| 52 | 52 | return AttributeResolver::resolve($request, $this, $resource); |
| 53 | 53 | } |
@@ -18,7 +18,6 @@ |
||
| 18 | 18 | use Tubee\Resource\AbstractResource; |
| 19 | 19 | use Tubee\Resource\AttributeResolver; |
| 20 | 20 | use Tubee\V8\Engine as V8Engine; |
| 21 | -use Tubee\Workflow\Map; |
|
| 22 | 21 | use Tubee\Workflow\WorkflowInterface; |
| 23 | 22 | use V8Js; |
| 24 | 23 | |
@@ -121,7 +121,7 @@ |
||
| 121 | 121 | 'namespace' => ['href' => (string) $request->getUri()->withPath('/api/v1/namespaces/'.$namespace)], |
| 122 | 122 | 'collection' => ['href' => (string) $request->getUri()->withPath('/api/v1/namespaces/'.$namespace.'/collections/'.$collection)], |
| 123 | 123 | 'endpoint' => ['href' => (string) $request->getUri()->withPath('/api/v1/namespaces/'.$namespace.'/collections/'.$collection.'/endpoints/'.$endpoint)], |
| 124 | - ], |
|
| 124 | + ], |
|
| 125 | 125 | 'namespace' => $namespace, |
| 126 | 126 | 'collection' => $collection, |
| 127 | 127 | 'endpoint' => $endpoint, |