Exemplo n.º 1
0
 /**
  * @return bool
  */
 public function exists()
 {
     return file_exists($this->dto->getFullFileName());
 }
Exemplo n.º 2
0
 /**
  * @param \Yamveecee\Resources\Dto $fileToLoadDto
  * @throws Parser\Exception
  * @return ParserInterface
  */
 private function getParser(\Yamveecee\Resources\Dto $fileToLoadDto)
 {
     $extension = $fileToLoadDto->getExtension();
     if (!array_key_exists($extension, $this->extensionParserMap)) {
         $exc = new \Yamveecee\Config\Parser\Exception('no parser for extension defined');
         throw $exc;
     }
     return $this->extensionParserMap[$extension];
 }