for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Created by PhpStorm.
* User: Clayton Daley
* Date: 5/6/2015
* Time: 6:39 PM
*/
namespace ZfcUser\Factory\Options;
use Zend\ServiceManager\FactoryInterface;
use Zend\ServiceManager\ServiceLocatorInterface;
use ZfcUser\Options;
class ModuleOptions implements FactoryInterface
{
* Create service
*
* @param ServiceLocatorInterface $serviceLocator
* @return mixed
public function createService(ServiceLocatorInterface $serviceLocator)
$config = $serviceLocator->get('Config');
return new Options\ModuleOptions(isset($config['zfcuser']) ? $config['zfcuser'] : array());
}