コード例 #1
0
 /**
  * @return ReaderRegistry
  */
 public function getReaderRegistry()
 {
     if (!$this->readerRegistry) {
         $this->readerRegistry = ReaderRegistry::getDefaultInstance();
     }
     return $this->readerRegistry;
 }
コード例 #2
0
 /**
  * @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;
 }