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
 public function testCreatesService()
 {
     $factory = new ViewPdfStrategyFactory();
     /* @var $instance \DOMPDFModule\View\Strategy\PdfStrategy */
     $instance = $factory->createService($this->getServiceManager());
     $this->assertInstanceOf('\\DOMPDFModule\\View\\Strategy\\PdfStrategy', $instance);
 }