vendor/friendsofsymfony/elastica-bundle/Provider/ProviderInterface.php line 5

Open in your IDE?
  1. <?php
  2. namespace FOS\ElasticaBundle\Provider;
  3. @trigger_error(sprintf('The %s class is deprecated since version 4.1 and will be removed in 5.0.'ProviderInterface::class), E_USER_DEPRECATED);
  4. /**
  5.  * @deprecated since 4.1 will be removed in 5.x. Use PagerProvider instead
  6.  * 
  7.  * Insert application domain objects into elastica types.
  8.  *
  9.  * @author Thibault Duplessis <thibault.duplessis@gmail.com>
  10.  */
  11. interface ProviderInterface
  12. {
  13.     /**
  14.      * Persists all domain objects to ElasticSearch for this provider.
  15.      *
  16.      * The closure can expect 2 or 3 arguments:
  17.      *   * The step size
  18.      *   * The total number of objects
  19.      *   * A message to output in error conditions (not normally provided)
  20.      *
  21.      * @param \Closure $loggerClosure
  22.      * @param array    $options
  23.      *
  24.      * @return
  25.      */
  26.     public function populate(\Closure $loggerClosure null, array $options = array());
  27. }