2011-04-12 04:27:47 +02:00
|
|
|
<?php
|
|
|
|
|
2011-04-17 19:56:32 +02:00
|
|
|
namespace FOQ\ElasticaBundle\Provider;
|
2011-04-12 04:27:47 +02:00
|
|
|
|
2011-04-15 21:19:27 +02:00
|
|
|
use Closure;
|
|
|
|
|
2011-06-07 20:13:34 +02:00
|
|
|
/**
|
|
|
|
* Insert application domain objects into elastica types
|
|
|
|
*
|
|
|
|
* @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
|
|
|
/**
|
|
|
|
* Add all domain objects of a repository to the elastica type
|
|
|
|
*
|
|
|
|
* @param Closure $loggerClosure
|
|
|
|
*/
|
2011-04-15 21:19:27 +02:00
|
|
|
function populate(Closure $loggerClosure);
|
2011-04-12 04:27:47 +02:00
|
|
|
}
|