Aimeos\ShopBundle\Controller\AccountController::downloadAction PHP Méthode

downloadAction() public méthode

Returns the html for the "My account" download page.
public downloadAction ( ) : Response
Résultat Symfony\Component\HttpFoundation\Response Response object containing the generated output
    public function downloadAction()
    {
        $context = $this->container->get('aimeos_context')->get();
        $langid = $context->getLocale()->getLanguageId();
        $view = $this->container->get('aimeos_view')->create($context, array(), $langid);
        $context->setView($view);
        $client = \Aimeos\Client\Html\Factory::createClient($context, array(), 'account/download');
        $client->setView($view);
        $client->process();
        $response = $view->response();
        return new Response((string) $response->getBody(), $response->getStatusCode(), $response->getHeaders());
    }