public function importIndex(
        Repository $repository,
        string $data,
        string $format
    ) {
        $items = $this
            ->exporterCollection
            ->getExporterByName($format)
            ->formatToItems($data);

        $repository->addItems($items);
        $repository->flush();
    }
public function importIndex(
        Repository $repository,
        string $data,
        string $format
    ) {
        $items = $this
            ->exporterCollection
            ->getExporterByName($format)
            ->formatToItems($data);

        $repository->addItems($items);
        $repository->flush();
    }
public function importIndex ( Repository $ repository , string $ data , string $ format ) { $ items = $ this -> exporterCollection -> getExporterByName ( $ format ) -> formatToItems ( $ data ) ; $ repository -> addItems ( $ items ) ; $ repository -> flush ( ) ; }
Import index.

@param Repository $repository
@param string     $data
@param string     $format
Import index .