Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
Total | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
2 / 2 |
ToolsControllerFactory | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
2 / 2 |
__invoke | |
100.00% |
1 / 1 |
1 | |
100.00% |
2 / 2 |
<?php | |
namespace AssetsBundle\Factory; | |
class ToolsControllerFactory implements \Zend\ServiceManager\Factory\FactoryInterface | |
{ | |
/** | |
* @see \Zend\ServiceManager\Factory\FactoryInterface::__invoke() | |
* @param \Interop\Container\ContainerInterface $oServiceLocator | |
* @param string $sRequestedName | |
* @param array $aOptions | |
* @return \AssetsBundle\Controller\ToolsController | |
*/ | |
public function __invoke(\Interop\Container\ContainerInterface $oServiceLocator, $sRequestedName, array $aOptions = null) | |
{ | |
$oToolsController = new \AssetsBundle\Controller\ToolsController(); | |
return $oToolsController->setAssetsBundleToolsService($oServiceLocator->get('AssetsBundleToolsService')); | |
} | |
} |