/** * @return ReaderRegistry */ public function getReaderRegistry() { if (!$this->readerRegistry) { $this->readerRegistry = ReaderRegistry::getDefaultInstance(); } return $this->readerRegistry; }
/** * @param string $path * @param int|null $format * @return $this */ protected function loadConfiguration($path, $format = null) { $readerRegistry = ReaderRegistry::getDefaultInstance(); $reader = $readerRegistry->getInstanceForFormat($format ?: Format::guessFormatFromPath($path)); $this->configuration = $reader->readFromFile($path); return $this; }