Skip to content

Commit

Permalink
Merge pull request #1 from amora2972/feature/make-enabled-checker-wor…
Browse files Browse the repository at this point in the history
…k-dynamically

[feature] make enabled checker work dynamically
  • Loading branch information
amora2972 authored Oct 8, 2021
2 parents 1034726 + 071db30 commit 32d3877
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,11 @@ public function boot()

$this->publishes([__DIR__ . '/../config/accessibility.php' => config_path('accessibility.php')], 'config');

// Escape case plugin is disabled
if (!$this->app['accessibility']->isEnabled())
return;

// Append routes for assets providing
$this->appendAssetsRoutes();

$kernel = $this->app[Kernel::class];
$kernel->pushMiddleware(InjectMenu::class);
$kernel->appendMiddlewareToGroup('web', InjectMenu::class);
}

/**
Expand Down

0 comments on commit 32d3877

Please sign in to comment.