for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace MobileDetectModule\View\Helper;
use Detection\MobileDetect as MobileDetector;
use Interop\Container\ContainerInterface;
/**
* @author Nikola Posa <[email protected]>
*/
class MobileDetectFactory
{
* @param ContainerInterface $container
* @return MobileDetect
public function __invoke(ContainerInterface $container)
return new MobileDetect($container->get(MobileDetector::class));
}