Skip to content

Commit 1104c97

Browse files
committed
Remove keys from slot array argument afterProcessOperation and afterDeserializeOperation.
1 parent 1ec116c commit 1104c97

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Classes/Dispatcher/AbstractDispatcher.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,16 +130,16 @@ protected function processOperation(
130130
$result = $handler->handle($operation, $request, $route ?? [], $response);
131131

132132
$arguments = [
133-
'operation' => $operation,
134-
'result' => $result,
133+
$operation,
134+
$result,
135135
];
136136
$arguments = $this->objectManager->get(SignalSlotDispatcher::class)
137137
->dispatch(__CLASS__, self::SIGNAL_AFTER_PROCESS_OPERATION, $arguments);
138138

139139
return $result === null
140140
? ''
141141
: $this->serializerService->serialize(
142-
$arguments['result'],
142+
$arguments[1],
143143
SerializationContextBuilder::createFromOperation($operation, $request)
144144
);
145145
}

Classes/OperationHandler/AbstractOperationHandler.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,12 @@ protected function deserializeOperation(
8989
}
9090

9191
$arguments = [
92-
'operation' => $operation,
93-
'object' => $object,
92+
$operation,
93+
$object,
9494
];
9595
$arguments = $this->objectManager->get(SignalSlotDispatcher::class)
9696
->dispatch(AbstractDispatcher::class, AbstractDispatcher::SIGNAL_AFTER_DESERIALIZE_OPERATION, $arguments);
9797

98-
return $arguments['object'];
98+
return $arguments[1];
9999
}
100100
}

0 commit comments

Comments
 (0)