This commit is contained in:
2022-02-15 07:33:00 +01:00
commit 50638af575
52 changed files with 7293 additions and 0 deletions

21
app/Latte/AssetFilter.php Executable file
View File

@@ -0,0 +1,21 @@
<?php
namespace App\Latte;
use Nette\Utils\JsonException;
use Vite;
class AssetFilter
{
public function __construct(
private Vite $vite,
) {}
/**
* @throws JsonException
*/
public function __invoke(string $path): string
{
return $this->vite->getAsset($path);
}
}