e09225eb09
* Created AbstractProvider class (for all DB services), which handles the default batch_size option. * The logger Closure is now optional for populate(). * Removed unused Elastica_Type argument from Provider constructors. * Added unit tests for Doctrine's AbstractProvider class. * The extra argument (ManagerRegistry) for Doctrine providers is now an appended constructor argument, so the extension no longer needs to use different replacement indexes for Propel/Doctrine providers.
19 lines
394 B
PHP
19 lines
394 B
PHP
<?php
|
|
|
|
namespace FOQ\ElasticaBundle\Provider;
|
|
|
|
/**
|
|
* Insert application domain objects into elastica types
|
|
*
|
|
* @author Thibault Duplessis <thibault.duplessis@gmail.com>
|
|
*/
|
|
interface ProviderInterface
|
|
{
|
|
/**
|
|
* Persists all domain objects to ElasticSearch for this provider.
|
|
*
|
|
* @param Closure $loggerClosure
|
|
*/
|
|
function populate(\Closure $loggerClosure = null);
|
|
}
|