juizmill/BoletoZendFramework

View on GitHub
src/View/Strategy/PdfStrategyFactory.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace BoletoZendFramework\View\Strategy;

use Interop\Container\ContainerInterface;
use Zend\ServiceManager\Factory\FactoryInterface;

class PdfStrategyFactory implements FactoryInterface
{
    /**
     * {@inheritdoc}
     */
    public function __invoke(ContainerInterface $container, $requestedName, array $options = null)
    {
        $viewRenderer = $container->get('ViewPdfRenderer');
        return new PdfStrategy($viewRenderer);
    }
}