Ejemplo n.º 1
0
 protected function loadMap()
 {
     $validator = new \Extasy\Validators\ReadableFile($this->getMapPath());
     if (!$validator->isValid()) {
         print '[FAILURE] file map file not readable, try to fixture files first';
     }
     $this->filesMap = json_decode(file_get_contents($this->getMapPath()));
 }
Ejemplo n.º 2
0
 protected function getCheckSum($path)
 {
     $path = SYS_ROOT . $path;
     $validator = new \Extasy\Validators\ReadableFile($path);
     if (!$validator->isValid()) {
         throw new \NotFoundException("Path - \"{$path}\" not readable");
     }
     return md5_file($path);
 }