20 lines
475 B
PHP
Executable File
20 lines
475 B
PHP
Executable File
<?php
|
|
|
|
namespace Modules\Affiliates\Providers;
|
|
|
|
use Kernel\Application;
|
|
use Modules\Affiliates\Middleware\AffiliateMiddleware;
|
|
|
|
class AffiliatesServiceProvider
|
|
{
|
|
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 AffiliateMiddleware());
|
|
}
|
|
} |