How can I hook into Extbase argument mapping mechanism? I want to be able to use regular controller arguments like…
MyController::showAction(MyModel $myModel)
…although $myModel is not a database based object. It is just transient, delivered by a foreign API. Where can I hook into to manually build the object? Or how to tell the DataHandler that when an integer value „5“ is passed to this showAction(), it should ask my custom (api) service to retrieve the correct record an build the „MyModel“ object from it?
The question is not about how to retrieve the data from the foreign API or how to convert it to a local domain model in general. It is just about how to hook into the „magic“ object mapping mechanism.