summaryrefslogtreecommitdiff
path: root/src/StyleFile.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/StyleFile.php')
-rw-r--r--src/StyleFile.php7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/StyleFile.php b/src/StyleFile.php
index ea3e425..0007215 100644
--- a/src/StyleFile.php
+++ b/src/StyleFile.php
@@ -4,14 +4,9 @@ namespace Lightscale\LaralightAssets;
class StyleFile extends File
{
- public function __construct(string $path)
- {
- $this->setPath($path);
- }
-
public function toHtml(): string
{
- $path = $this->getPath();
+ $path = $this->getUrl();
return "<link type=\"text/css\" rel=\"stylesheet\" href=\"{$path}\" />";
}
}