Minor - use Symfony Filesystem exception

pull/3064/head
Julio Montoya 5 years ago
parent b9d6beae9a
commit 76046e8ce6
  1. 4
      src/CourseBundle/Repository/CDocumentRepository.php

@ -8,7 +8,7 @@ use Chamilo\CoreBundle\Entity\Resource\ResourceRight;
use Chamilo\CoreBundle\Repository\ResourceRepository;
use Chamilo\CoreBundle\Security\Authorization\Voter\ResourceNodeVoter;
use Chamilo\CourseBundle\Entity\CDocument;
use Gaufrette\Exception\FileNotFound;
use Symfony\Component\Filesystem\Exception\FileNotFoundException;
/**
* Class CDocumentRepository.
@ -59,7 +59,7 @@ final class CDocumentRepository extends ResourceRepository
return $this->fs->read($fileName);
} catch (\Throwable $exception) {
throw new FileNotFound($id);
throw new FileNotFoundException($id);
}
}

Loading…
Cancel
Save