private function getConfiguration() : array
 {
     $configuration = [];
     foreach ($this->mapping as $className => $options) {
         $path = $this->resolver->resolvePath($options['mapping']);
         if ($this->filesystem->exists($path)) {
             $content = file_get_contents($path);
             $configuration = array_replace_recursive($configuration, $this->parseContent($content));
         }
     }
     return $configuration;
 }
 protected function dumpSerializationFile(ClassMetadata $metadata, array $options, OutputInterface $output, $force = false)
 {
     $targetPath = $this->resolver->resolvePath($options['mapping']);
     $config = [$metadata->getName() => ['fields' => $this->prepareMetadataFields($metadata), 'associations' => $this->prepareMetadataAssociations($metadata), 'callbacks' => []]];
     $message = 'Dumped serialization config for <info>%s</info>';
     if ($force) {
         $this->filesystem->dumpFile($targetPath, Yaml::dump($config, 6));
     } else {
         if (false === $this->filesystem->exists($targetPath)) {
             $this->filesystem->dumpFile($targetPath, Yaml::dump($config, 6));
         } else {
             $message = 'Skipped dumping serialization config for <info>%s</info>';
         }
     }
     $output->write(sprintf($message, $metadata->getName()), true);
 }