2024-03-30 15:47:48 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Providers;
|
|
|
|
|
2024-12-31 20:24:15 +02:00
|
|
|
use App\View\Composers\HighscoreComposer;
|
2024-06-02 22:09:52 +03:00
|
|
|
use App\View\Composers\MallComposer;
|
2024-12-31 20:21:54 +02:00
|
|
|
use App\View\Composers\ThemeComposer;
|
2024-03-30 15:47:48 +02:00
|
|
|
use Illuminate\Support\Facades;
|
|
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
|
|
|
|
|
class ViewServiceProvider extends ServiceProvider
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Register any application services.
|
|
|
|
*/
|
|
|
|
public function register(): void
|
|
|
|
{
|
|
|
|
// ...
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Bootstrap any application services.
|
|
|
|
*/
|
|
|
|
public function boot(): void
|
|
|
|
{
|
2024-12-31 20:40:58 +02:00
|
|
|
// Main application
|
2024-12-31 20:21:54 +02:00
|
|
|
Facades\View::composer('layouts.app', ThemeComposer::class);
|
2024-12-31 20:24:15 +02:00
|
|
|
Facades\View::composer('layouts.app', HighscoreComposer::class);
|
2024-12-31 20:40:58 +02:00
|
|
|
|
|
|
|
// Mall
|
|
|
|
Facades\View::composer('layouts.mall', MallComposer::class);
|
2024-03-30 15:47:48 +02:00
|
|
|
}
|
|
|
|
}
|