Skip to content

Commit

Permalink
πŸ§‘β€πŸ’» Alias the Foundation Vite class in the container
Browse files Browse the repository at this point in the history
  • Loading branch information
Log1x committed Jan 28, 2025
1 parent 54c5007 commit ed311e8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Roots/Acorn/Assets/AssetsServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace Roots\Acorn\Assets;

use Illuminate\Foundation\Vite as FoundationVite;
use Illuminate\Support\ServiceProvider;
use Roots\Acorn\Assets\View\BladeDirective;

Expand All @@ -20,6 +21,8 @@ public function register()

$this->app->singleton('assets.vite', Vite::class);

$this->app->alias(Vite::class, FoundationVite::class);

$this->app->singleton('assets.manifest', function ($app) {
return $app['assets']->manifest($this->getDefaultManifest());
});
Expand Down

0 comments on commit ed311e8

Please sign in to comment.