src/UthandoDomPdf/Mvc/Service/ViewPdfStrategyFactory.php
public function createService(ServiceLocatorInterface $serviceLocator)
    {
        $pdfRenderer = $serviceLocator->get(PdfRenderer::class);
        $pdfStrategy = new PdfStrategy($pdfRenderer);
        
        return $pdfStrategy;
    }
public function createService(ServiceLocatorInterface $serviceLocator)
    {
        $pdfRenderer = $serviceLocator->get(PdfRenderer::class);
        $pdfStrategy = new PdfStrategy($pdfRenderer);
        
        return $pdfStrategy;
    }
public function createService ( ServiceLocatorInterface $ serviceLocator ) { $ pdfRenderer = $ serviceLocator -> get ( PdfRenderer :: class ) ; $ pdfStrategy = new PdfStrategy ( $ pdfRenderer ) ; return $ pdfStrategy ; }
Create and return the PDF view strategy

Retrieves the ViewPdfRenderer service from the service locator, and
injects it into the constructor for the PDF strategy.

@param  ServiceLocatorInterface $serviceLocator
@return PdfStrategy
Create and return the PDF view strategy