CommonGateway\CoreBundle\Service\DownloadService

Handles incoming notification api-calls by finding or creating a synchronization and synchronizing an object.

Methods

Name Description
__construct The constructor sets al needed variables.
downloadPdf Downloads a pdf.
render Renders a pdf.

DownloadService::__construct

Description

public __construct (\EntityManagerInterface $entityManager, \LoggerInterface $requestLogger, \Environment $twig)

The constructor sets al needed variables.

Parameters

  • (\EntityManagerInterface) $entityManager : The EntityManager
  • (\LoggerInterface) $requestLogger : The Logger
  • (\Environment) $twig : Twig

Return Values

void


DownloadService::downloadPdf

Description

public downloadPdf (array $data)

Downloads a pdf.

Parameters

  • (array) $data : The data to render for this pdf.

Return Values

string

The pdf as string output.


DownloadService::render

Description

public render (array $data)

Renders a pdf.

Parameters

  • (array) $data : The data to render.

Return Values

string

The content rendered.