From d167f08e24e39a067c1db1ab94a5c030f4f5107b Mon Sep 17 00:00:00 2001 From: Adam Pippin Date: Sun, 14 Feb 2021 16:00:23 -0800 Subject: [PATCH] Add File::clear() to allow clearing and reusing/modifying file resolver --- app/Engine/File.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/app/Engine/File.php b/app/Engine/File.php index 6a1a10e..4cb6e7a 100644 --- a/app/Engine/File.php +++ b/app/Engine/File.php @@ -57,4 +57,14 @@ class File { $this->paths[] = $path; } + + /** + * Clear all search paths. + * + * @return void + */ + public function clear(): void + { + $this->paths = []; + } }