@@ -44,7 +44,7 @@ |
||
| 44 | 44 | ], |
| 45 | 45 | 'kind' => 'Secret', |
| 46 | 46 | 'data' => $this->getData(), |
| 47 | - ]; |
|
| 47 | + ]; |
|
| 48 | 48 | |
| 49 | 49 | return AttributeResolver::resolve($request, $this, $resource); |
| 50 | 50 | } |
@@ -42,7 +42,7 @@ |
||
| 42 | 42 | $resource = [ |
| 43 | 43 | 'kind' => 'AccessRule', |
| 44 | 44 | 'data' => $this->getData(), |
| 45 | - ]; |
|
| 45 | + ]; |
|
| 46 | 46 | |
| 47 | 47 | return AttributeResolver::resolve($request, $this, $resource); |
| 48 | 48 | } |
@@ -122,7 +122,7 @@ |
||
| 122 | 122 | 'http' => [ |
| 123 | 123 | 'method' => $method, |
| 124 | 124 | 'header' => "Content-Type: application/json\r\n". |
| 125 | - 'Authorization: Basic '.base64_encode($this->username.':'.$this->password)."\r\n", |
|
| 125 | + 'Authorization: Basic '.base64_encode($this->username.':'.$this->password)."\r\n", |
|
| 126 | 126 | ], |
| 127 | 127 | ]; |
| 128 | 128 | |
@@ -398,9 +398,9 @@ |
||
| 398 | 398 | } |
| 399 | 399 | |
| 400 | 400 | $mail = (new Message()) |
| 401 | - ->setSubject($subject) |
|
| 402 | - ->setBody($body) |
|
| 403 | - ->setEncoding('UTF-8'); |
|
| 401 | + ->setSubject($subject) |
|
| 402 | + ->setBody($body) |
|
| 403 | + ->setEncoding('UTF-8'); |
|
| 404 | 404 | |
| 405 | 405 | foreach ($this->data['notification']['receiver'] as $receiver) { |
| 406 | 406 | $mail->setTo($receiver); |
@@ -185,7 +185,7 @@ |
||
| 185 | 185 | '_links' => [ |
| 186 | 186 | 'namespace' => ['href' => (string) $request->getUri()->withPath('/api/v1/namespaces/'.$namespace)], |
| 187 | 187 | 'collection' => ['href' => (string) $request->getUri()->withPath('/api/v1/namespaces/'.$namespace.'/collections/'.$collection)], |
| 188 | - ], |
|
| 188 | + ], |
|
| 189 | 189 | 'kind' => static::KIND, |
| 190 | 190 | 'namespace' => $namespace, |
| 191 | 191 | 'collection' => $collection, |
@@ -115,7 +115,7 @@ |
||
| 115 | 115 | 'namespace' => ['href' => (string) $request->getUri()->withPath('/api/v1/namespaces/'.$namespace)], |
| 116 | 116 | 'collection' => ['href' => (string) $request->getUri()->withPath('/api/v1/namespaces/'.$namespace.'/collections/'.$collection)], |
| 117 | 117 | 'endpoint' => ['href' => (string) $request->getUri()->withPath('/api/v1/namespaces/'.$namespace.'/collections/'.$collection.'/endpoints/'.$endpoint)], |
| 118 | - ], |
|
| 118 | + ], |
|
| 119 | 119 | 'kind' => 'Workflow', |
| 120 | 120 | 'namespace' => $namespace, |
| 121 | 121 | 'collection' => $collection, |
@@ -112,7 +112,7 @@ |
||
| 112 | 112 | 'namespace_2' => $object_2->getCollection()->getResourceNamespace()->getName(), |
| 113 | 113 | 'object_2' => $object_2->getId(), |
| 114 | 114 | 'data' => $context, |
| 115 | - ]; |
|
| 115 | + ]; |
|
| 116 | 116 | |
| 117 | 117 | $exists = $this->db->{self::COLLECTION_NAME}->findOne([ |
| 118 | 118 | '$or' => [ |
@@ -51,9 +51,9 @@ |
||
| 51 | 51 | $related = $this->related_object; |
| 52 | 52 | $resource = [ |
| 53 | 53 | '_links' => [ |
| 54 | - 'self' => ['href' => (string) $request->getUri()], |
|
| 55 | - //'namespace' => ['href' => ($namespace = (string) $request->getUri()->withPath('/api/v1/namespaces/'.$namespace->getName()))], |
|
| 56 | - //'collection' => ['href' => $namespace.'/collections'.$collection->getName()], |
|
| 54 | + 'self' => ['href' => (string) $request->getUri()], |
|
| 55 | + //'namespace' => ['href' => ($namespace = (string) $request->getUri()->withPath('/api/v1/namespaces/'.$namespace->getName()))], |
|
| 56 | + //'collection' => ['href' => $namespace.'/collections'.$collection->getName()], |
|
| 57 | 57 | ], |
| 58 | 58 | 'kind' => 'DataObjectRelation', |
| 59 | 59 | /*'data' => [ |
@@ -144,7 +144,7 @@ |
||
| 144 | 144 | 'data' => [ |
| 145 | 145 | 'schema' => $this->schema->getSchema(), |
| 146 | 146 | ], |
| 147 | - ]; |
|
| 147 | + ]; |
|
| 148 | 148 | |
| 149 | 149 | return AttributeResolver::resolve($request, $this, $resource); |
| 150 | 150 | } |