skip large file by treat it as empty file
parent
b8ae04d56b
commit
c810f49633
|
@ -110,7 +110,7 @@ class PhpDocumentLoader
|
|||
$content = yield $this->contentRetriever->retrieve($uri);
|
||||
$size = strlen($content);
|
||||
if ($size > $limit) {
|
||||
throw new ContentTooLargeException($uri, $size, $limit);
|
||||
return $this->create($uri, "");
|
||||
}
|
||||
|
||||
if (isset($this->documents[$uri])) {
|
||||
|
|
Loading…
Reference in New Issue