/**
  * @param CacheAttendantInterface[] $as
  *
  * @return int
  */
 protected function doFlush(array $as)
 {
     $this->io->section('Flushing all cache entries');
     $rows = [];
     foreach ($as as $a) {
         $result = $a->flush();
         $class = get_class($a);
         $rows[] = [$this->output->isVerbose() ? $class : ClassInfo::getClassName($class), sprintf('<fg=%s;options=bold>%s</>', $result ? 'green' : 'red', $result ? '\\' === DIRECTORY_SEPARATOR ? 'OK' : '✔' : ('\\' === DIRECTORY_SEPARATOR ? 'ERROR' : '✘'))];
     }
     $this->io->table(['Attendant', 'Result'], $rows);
     return 0;
 }
 /**
  * @param string $dependencyName
  * @param string $fixtureFQCN
  *
  * @return bool|string
  */
 protected function resolveDependencyToFixtureClass($dependencyName, $fixtureFQCN)
 {
     $entityFQCN = $this->getParameter($this->getDependencyEntityParameter($dependencyName));
     return sprintf('%sLoad%sData', ClassInfo::getNamespace($fixtureFQCN), ClassInfo::getClassName($entityFQCN));
 }
 /**
  * @param string $entityFQCN
  */
 protected function performEntityPurge($entityFQCN)
 {
     $toDelete = $this->manager->getRepository($entityFQCN)->findAll();
     OutBuffer::stat('+g/b-preload [purge]+w/- truncating previous entities=[+w/i- %d found +w/-] for=[+w/i- %s +w/-] ', count($toDelete), ClassInfo::getClassName($entityFQCN));
     foreach ($toDelete as $d) {
         $this->manager->remove($d);
         ++$this->countPurge;
     }
     $this->entityManagerFlushAndClean();
 }