prehistoric-actor-16607
07/03/2023, 2:15 PM// Pyz\Client\Training\Stub\TrainingStub.php
public function getAllAntelope(): AntelopeCollectionTransfer
{
/** @var \Generated\Shared\Transfer\AntelopeCollectionTransfer $antelopeCollectionTransfer */
$antelopeCollectionTransfer = $this->zedRequestClient->call('/training/gateway/get-all-antelopes', new AntelopeCollectionTransfer());
return $antelopeCollectionTransfer;
}
But the second argument of ZedRequestClientInterface->call() wants a TransferInterface what is the design purpoise behind this?
There are cases where I just want to fetch Information from a Zed Controller without sending criteria Objects or other Parameters at all.
With that sad it seems to be that under the hood ZedRequestClientInterface->call(...) translates into an internal POST requests ?
My Zed-Gateway Controller looks like this btw:
// Pyz\Zed\Training\Communication\Controller\GatewayController.php
public function getAllAntelopesAction() :AntelopeCollectionTransfer
{
return $this->getFacade()
->getAntelopes();
}