PHP Class DOMPDFModule\Mvc\Service\ViewPdfStrategyFactory

Inheritance: implements Zend\ServiceManager\FactoryInterface
Datei anzeigen Open project: raykolbe/DOMPDFModule Class Usage Examples

Public Methods

Method Description
createService ( Zend\ServiceManager\ServiceLocatorInterface $serviceLocator ) : PdfStrategy Create and return the PDF view strategy

Method Details

createService() public method

Retrieves the ViewPdfRenderer service from the service locator, and injects it into the constructor for the PDF strategy.
public createService ( Zend\ServiceManager\ServiceLocatorInterface $serviceLocator ) : PdfStrategy
$serviceLocator Zend\ServiceManager\ServiceLocatorInterface
return DOMPDFModule\View\Strategy\PdfStrategy