mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 13:14:05 +00:00
31 lines
593 B
PHP
31 lines
593 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Stancl\Tenancy\Features;
|
|
|
|
use Illuminate\Foundation\Application;
|
|
use Illuminate\Foundation\Vite as BaseVite;
|
|
use Stancl\Tenancy\Contracts\Feature;
|
|
use Stancl\Tenancy\Vite;
|
|
|
|
class ViteBundler implements Feature
|
|
{
|
|
/** @var Application */
|
|
protected $app;
|
|
|
|
public function __construct(Application $app)
|
|
{
|
|
$this->app = $app;
|
|
}
|
|
|
|
public function bootstrap(): void
|
|
{
|
|
$this->app->singleton(BaseVite::class, Vite::class);
|
|
}
|
|
|
|
public static function alwaysBootstrap(): bool
|
|
{
|
|
return false;
|
|
}
|
|
}
|