initial commmit
tests / ci (push) Canceled after 0s

This commit is contained in:
Mark Gregory
2026-09-30 14:24:42 +01:00
parent 4bff627a79
commit 0a74f5b44e
241 changed files with 27923 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
<?php
namespace Modules\Stylist\Theme;
final class UrlGenerator
{
public function __construct(private readonly Stylist $stylist) {}
public function asset(string $path): string
{
return $this->forTheme($this->stylist->current(), $path);
}
public function forTheme(Theme|string $theme, string $path): string
{
$key = $theme instanceof Theme ? $theme->key() : $theme;
return route('stylist.theme.asset', ['theme' => $key, 'path' => ltrim($path, '/')]);
}
}