for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @author Stefano Torresi (http://stefanotorresi.it)
* @license See the file LICENSE.txt for copying permission.
* ************************************************
*/
namespace Thorr\OAuth2\Factory;
use Thorr\OAuth2\Options\ModuleOptions;
use Zend\ServiceManager\FactoryInterface;
use Zend\ServiceManager\ServiceLocatorInterface;
class ModuleOptionsFactory implements FactoryInterface
{
* Create service
*
* @param ServiceLocatorInterface $serviceLocator
* @return ModuleOptions
public function createService(ServiceLocatorInterface $serviceLocator)
$config = $serviceLocator->get('config');
return new ModuleOptions($config['thorr_oauth']);
}