for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace ZfcUser\Factory;
use Zend\ServiceManager\FactoryInterface;
use Zend\ServiceManager\ServiceLocatorInterface;
use ZfcUser\Options\ModuleOptions;
class ModuleOptionsFactory implements FactoryInterface
{
/**
* {@inheritDoc}
*/
public function createService(ServiceLocatorInterface $serviceLocator)
$config = $serviceLocator->get('Config');
return new ModuleOptions(isset($config['zfcuser']) ? $config['zfcuser'] : array());
}