public function __construct($options = NULL, EventDispatcherInterface $eventDispatcher = NULL) { parent::__construct($options); if ($eventDispatcher) { $this->eventDispatcher = $eventDispatcher; } }
/** * Tries to connect to a Solr Server * @param string $db_host * @param string $db_port * @param string $db_path * */ public function __construct($db_host, $db_port, $db_path, $db_core) { $config = array('endpoint' => array('localhost' => array('host' => $db_host, 'port' => $db_port, 'path' => $db_path, 'core' => $db_core))); parent::__construct($config); }