Also can you correct the way i am trying to retrieve the document from the API:
public function index(HttpClientInterface $http): Response
{
$response = $http->request(Request::METHOD_GET, 'https://dev.doc.ey');
$doc = new DOCXStructureFromStream;
$doc->generateDOCXStructure($response->getContent());
dd($doc);
return $this->render('app/index.html.twig', [
'controller_name' => 'AppController',
]);
}
Thanks in advance