1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-06 08:04:03 +00:00

Move Vite bundler to an Optional Feature

This commit is contained in:
Wilsen Hernández 2022-09-25 09:50:08 -04:00
parent 75cb428372
commit 4d2549a906
3 changed files with 20 additions and 3 deletions

View file

@ -0,0 +1,19 @@
<?php
declare(strict_types=1);
namespace Stancl\Tenancy\Features;
use Illuminate\Foundation\Vite as BaseVite;
use Illuminate\Support\Facades\App;
use Stancl\Tenancy\Contracts\Feature;
use Stancl\Tenancy\Tenancy;
use Stancl\Tenancy\Vite;
class ViteBundler implements Feature
{
public function bootstrap(Tenancy $tenancy): void
{
App::singleton(BaseVite::class, Vite::class);
}
}