Skip to content

Commit

Permalink
Merge pull request #57 from WandiParis/main
Browse files Browse the repository at this point in the history
feat(EntrypointRenderer): allow to reset the current state of the service - #56
  • Loading branch information
lhapaipai authored Jul 28, 2023
2 parents f407591 + 68e9d92 commit fa6e9ee
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Asset/EntrypointRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,13 @@ public function renderLinks(string $entryName, array $options = [], $buildName =
return implode(PHP_EOL, $content);
}

public function reset()
{
// resets the state of this service
$this->returnedViteClients = [];
$this->returnedReactRefresh = [];
}

public static function pascalToKebab(string $str): string
{
return strtolower(preg_replace('/[A-Z]/', '-\\0', lcfirst($str)));
Expand Down

0 comments on commit fa6e9ee

Please sign in to comment.