Last active
November 25, 2020 15:49
-
-
Save merltron-pa/31a98d0ff855e37340b441123633daa9 to your computer and use it in GitHub Desktop.
PHP / JMS Article: Final Step
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
... | |
class TestAddressController extends AbstractFOSRestController | |
{ | |
/** | |
* @Route("/test/address", methods={"POST"}) | |
* @ParamConverter("address", converter="fos_rest.request_body") | |
*/ | |
public function post(Address $address): Response | |
{ | |
return $this->handleView($this->view($address)); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment