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())); }
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); }