Skip to content

Commit b03f868

Browse files
committed
name tweak
1 parent e1a0c5b commit b03f868

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
namespace Dakujem\Peat;
66

77
/**
8+
* Vite entry locator for development environments.
9+
*
810
* This locator will check for the presence of a development server "tell" file once - upon the first entry lookup.
911
* If it is present, it will attempt to read its contents for the server's URL.
1012
* A fallback URL may be provided for cases when the tell file does not contain a valid dev server URL.
@@ -14,7 +16,7 @@
1416
*
1517
* @author Andrej Rypak <xrypak@gmail.com>
1618
*/
17-
final class DetectTellFileOnce implements ViteLocatorContract
19+
final class TellFileDevelopmentLocator implements ViteLocatorContract
1820
{
1921
private string $tellFileName;
2022
private ?string $fallbackServerUrl;
@@ -67,4 +69,4 @@ private function createLocatorIfServerDetected(): ?ViteLocatorContract
6769
// If the dev server's URL is known, all asset entries will be directed to it.
6870
return new ViteServerLocator($devServerUrl);
6971
}
70-
}
72+
}

src/ViteBridge.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public static function makeEntryLocator(
5858

5959
// The detection should not run in production.
6060
if ($detectDevelopmentServer) {
61-
$locators[] = new DetectTellFileOnce(
61+
$locators[] = new TellFileDevelopmentLocator(
6262
$devServerTellFileName,
6363
$devServerUrl,
6464
);

0 commit comments

Comments
 (0)