Files
dockerfluxodecaixapro/modules/affiliatesadmin/Providers/AffiliatesAdminServiceProvider.php
T
2026-09-01 10:46:29 -03:00

20 lines
500 B
PHP
Executable File

<?php
namespace Modules\AffiliatesAdmin\Providers;
use Kernel\Application;
use Modules\AffiliatesAdmin\Middleware\AffiliateAdminMiddleware;
class AffiliatesAdminServiceProvider
{
public function register(): void
{
// The ModuleLoader handles loading routes, views, and translations
// based on module.json. No need to call them here.
}
public function boot(Application $app): void
{
$app->addProtectedMiddleware(new AffiliateAdminMiddleware());
}
}