php-service/src/Website/Service/Boot.php
Snider 09191cd39e fix(service): add missing EUPL license headers to Website files
Three Website layer files were missing the standard license header
that all Core layer files already had.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-17 09:07:21 +00:00

41 lines
878 B
PHP

<?php
/*
* Core PHP Framework
*
* Licensed under the European Union Public Licence (EUPL) v1.2.
* See LICENSE file for details.
*/
declare(strict_types=1);
namespace Core\Website\Service;
use Illuminate\Support\Facades\Route;
use Illuminate\Support\Facades\View;
use Illuminate\Support\ServiceProvider;
/**
* Generic Service Mod.
*
* Serves the public marketing/landing pages for services.
* Uses workspace data (name, icon, color) for dynamic theming.
*
* Services can override this by having their own Mod/{Service} module.
*/
class Boot extends ServiceProvider
{
public function register(): void
{
//
}
public function boot(): void
{
View::addNamespace('service', __DIR__.'/View/Blade');
Route::middleware('web')
->domain(request()->getHost())
->group(__DIR__.'/Routes/web.php');
}
}