Skip to content

Commit

Permalink
adds internal method resetClassResource
Browse files Browse the repository at this point in the history
  • Loading branch information
filecage committed Jul 1, 2019
1 parent 543a334 commit e182ffa
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/ResourceRegistry.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,16 @@ function registerClassResource ($instance, ...$classResourceKeys) {
return $this;
}

/**
* @param string $classResourceKey
* @return $this
*/
function resetClassResource ($classResourceKey) {
unset($this->classResources[$classResourceKey]);

return $this;
}

/**
* @param string $classResourceKey
*
Expand Down

0 comments on commit e182ffa

Please sign in to comment.