/**
  * @param OutputInterface $output
  * @param Repository $source
  * @param WritableRepository $destination
  */
 private function setupProgressBar(OutputInterface $output, Repository $source, WritableRepository $destination)
 {
     $this->progress = new ProgressBar($output, count($source));
     $this->progress->setMessage('Generating database...');
     $this->progress->start();
     $destination->attach($this);
 }
 /**
  * {@inheritDoc}
  */
 public function addMany(Collection $characters)
 {
     $function = __FUNCTION__;
     $characters->traverseWith(function (CodepointAssigned $c) use($function) {
         $this->logMethodCall($function, [(string) $c->getCodepoint()]);
     });
     $this->delegate->addMany($characters);
     $this->notify();
 }