for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* YAWIK
*
* @copyright (c) 2013 - 2016 Cross Solution (http://cross-solution.de)
* @license MIT
*/
namespace Solr\Factory;
use Solr\Options\Connection;
use Zend\ServiceManager\FactoryInterface;
use Zend\ServiceManager\ServiceLocatorInterface;
class ConnectionOptionFactory implements FactoryInterface
{
public function createService(ServiceLocatorInterface $serviceLocator)
$config = $serviceLocator->get('Configuration');
$service = new Connection($config['solr']['connection']);
return $service;
}