Aimeos\ShopBundle\Controller\JsonadmController::putAction PHP Method

putAction() public method

Creates or updates a single resource object
public putAction ( Request $request, $resource, string $site = 'default' ) : Response
$request Symfony\Component\HttpFoundation\Request Request object
$site string Unique site code
return Symfony\Component\HttpFoundation\Response Response object containing the generated output
    public function putAction(Request $request, $resource, $site = 'default')
    {
        $status = 500;
        $header = $request->headers->all();
        $client = $this->createClient($site, $resource, $request->get('lang', 'en'));
        $result = $client->put($request->getContent(), $header, $status);
        return $this->createResponse($result, $status, $header);
    }