2011-04-12 04:27:47 +02:00
|
|
|
<?php
|
|
|
|
|
2013-03-27 18:44:06 +01:00
|
|
|
namespace FOS\ElasticaBundle\Provider;
|
2011-04-12 04:27:47 +02:00
|
|
|
|
2011-06-07 20:13:34 +02:00
|
|
|
/**
|
2015-03-12 11:20:00 +01:00
|
|
|
* Insert application domain objects into elastica types.
|
2011-06-07 20:13:34 +02:00
|
|
|
*
|
|
|
|
* @author Thibault Duplessis <thibault.duplessis@gmail.com>
|
|
|
|
*/
|
2011-04-12 04:27:47 +02:00
|
|
|
interface ProviderInterface
|
|
|
|
{
|
2011-06-07 20:13:34 +02:00
|
|
|
/**
|
2012-03-10 00:51:08 +01:00
|
|
|
* Persists all domain objects to ElasticSearch for this provider.
|
2011-06-07 20:13:34 +02:00
|
|
|
*
|
2015-03-11 11:31:23 +01:00
|
|
|
* The closure can expect 2 or 3 arguments:
|
|
|
|
* * The step size
|
|
|
|
* * The total number of objects
|
|
|
|
* * A message to output in error conditions (not normally provided)
|
|
|
|
*
|
2013-03-02 12:23:44 +01:00
|
|
|
* @param \Closure $loggerClosure
|
2013-10-08 12:00:04 +02:00
|
|
|
* @param array $options
|
2015-03-12 11:20:00 +01:00
|
|
|
*
|
2013-03-02 12:23:44 +01:00
|
|
|
* @return
|
2011-06-07 20:13:34 +02:00
|
|
|
*/
|
2015-03-12 11:20:00 +01:00
|
|
|
public function populate(\Closure $loggerClosure = null, array $options = array());
|
2011-04-12 04:27:47 +02:00
|
|
|
}
|