Skip to content

Commit f5269bd

Browse files
author
Alessandro Pellizzari
committed
Added clearCache function RefResolver
1 parent 0c46307 commit f5269bd

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/JsonSchema/RefResolver.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,14 @@ private function resolveCached($sourceUri)
7474
return $this->getRefSchema($jsonPointer, $schema);
7575
}
7676

77+
/**
78+
* Removes all resolved schemas from cache.
79+
*/
80+
public function clearCache()
81+
{
82+
$this->cache = [];
83+
}
84+
7785
/**
7886
* Recursive resolve schema by traversing through al nodes
7987
*

0 commit comments

Comments
 (0)