Code Coverage
 
Classes and Traits
Functions and Methods
Lines
Total
0.00%
0 / 1
0.00%
0 / 1
CRAP
0.00%
0 / 4
MobileDetectHelperFactory
0.00%
0 / 1
0.00%
0 / 1
2
0.00%
0 / 4
 createService(\Zend\ServiceManager\ServiceLocatorInterface $oServiceLocator)
0.00%
0 / 1
2
0.00%
0 / 4
<?php
namespace Neilime\MobileDetect\Factory;
class MobileDetectHelperFactory implements \Zend\ServiceManager\FactoryInterface{
/**
* @see \Zend\ServiceManager\FactoryInterface::createService()
* @param \Zend\ServiceManager\ServiceLocatorInterface $oServiceLocator
* @return \Mobile_Detect
*/
public function createService(\Zend\ServiceManager\ServiceLocatorInterface $oServiceLocator){
$oMobileDetectHelper = new \Neilime\MobileDetect\View\Helper\MobileDetectHelper();
return $oMobileDetectHelper->setServiceLocator($oServiceLocator);
}