Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
Total | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
2 / 2 |
JsCustomStrategyFactory | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
2 / 2 |
createService | |
100.00% |
1 / 1 |
1 | |
100.00% |
2 / 2 |
<?php | |
namespace AssetsBundle\Factory; | |
class JsCustomStrategyFactory implements \Zend\ServiceManager\FactoryInterface{ | |
/** | |
* @see \Zend\ServiceManager\FactoryInterface::createService() | |
* @param \Zend\ServiceManager\ServiceLocatorInterface $oServiceLocator | |
* @return \AssetsBundle\View\Strategy\JsCustomStrategy | |
*/ | |
public function createService(\Zend\ServiceManager\ServiceLocatorInterface $oServiceLocator){ | |
$oJsCustomStrategy = new \AssetsBundle\View\Strategy\JsCustomStrategy(); | |
return $oJsCustomStrategy->setRouter($oServiceLocator->get('router'))->setRenderer($oServiceLocator->get('JsCustomRenderer')); | |
} | |
} |