First Commit
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\SystemConfig\Providers;
|
||||
|
||||
use Kernel\Application;
|
||||
use Modules\SystemConfig\Middleware\MaintenanceMiddleware;
|
||||
|
||||
class SystemConfigServiceProvider
|
||||
{
|
||||
public function register()
|
||||
{
|
||||
}
|
||||
|
||||
public function boot()
|
||||
{
|
||||
$app = Application::getInstance();
|
||||
|
||||
// Register Global Middleware (runs on all requests)
|
||||
if (method_exists($app, 'addGlobalMiddleware')) {
|
||||
$app->addGlobalMiddleware(new MaintenanceMiddleware());
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user