public function runMap($file, $batch, $index = null)
    {
        $mapping = $this->resolve($file);

        $mapping->setIndex($index);

        $mapping->map();

        $this->repository->log($file, $batch);

        $this->note('<info>Mapped:</info> '.$file);
    }
public function runMap($file, $batch, $index = null)
    {
        $mapping = $this->resolve($file);

        $mapping->setIndex($index);

        $mapping->map();

        $this->repository->log($file, $batch);

        $this->note('<info>Mapped:</info> '.$file);
    }
public function runMap ( $ file , $ batch , $ index = null ) { $ mapping = $ this -> resolve ( $ file ) ; $ mapping -> setIndex ( $ index ) ; $ mapping -> map ( ) ; $ this -> repository -> log ( $ file , $ batch ) ; $ this -> note ( '<info>Mapped:</info> ' . $ file ) ; }
Run the given mapping file.

@param $file
@param $batch
@param string|null $index The index on which to run the mappings instead of the default one.
Run the given mapping file .