Skip to content

Commit

Permalink
main
Browse files Browse the repository at this point in the history
  • Loading branch information
6562680 committed May 27, 2024
1 parent 076f188 commit 746399f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Di.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,13 @@ public function setSettings(array $settings = null) // : static
}


public function resetCache() // : static
{
$this->reflector->resetCache();

return $this;
}

/**
* @param array{
* reflectorCacheMode: string|null,
Expand All @@ -80,6 +87,8 @@ public function setCacheSettings(array $settings = null) // : static
$cacheFilename
);

$this->reflector->resetCache();

return $this;
}

Expand Down
3 changes: 3 additions & 0 deletions src/DiInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ interface DiInterface
*/
public function setSettings(array $settings = null); // : static


public function resetCache(); // : static

/**
* @param array{
* reflectorCacheMode: string|null,
Expand Down

0 comments on commit 746399f

Please sign in to comment.