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:
parent
75cb428372
commit
4d2549a906
3 changed files with 20 additions and 3 deletions
19
src/Features/ViteBundler.php
Normal file
19
src/Features/ViteBundler.php
Normal 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);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue