From ae4b614d7c06bbeab185ff8a7b229077806f2d94 Mon Sep 17 00:00:00 2001 From: Michael Aerni Date: Sat, 22 Jun 2024 13:25:40 -0400 Subject: [PATCH] Rename methods --- src/ServiceProvider.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/ServiceProvider.php b/src/ServiceProvider.php index df34541d..ffb6f81c 100644 --- a/src/ServiceProvider.php +++ b/src/ServiceProvider.php @@ -113,17 +113,17 @@ class ServiceProvider extends AddonServiceProvider public function bootAddon(): void { $this - ->bootAddonStores() - ->bootAddonNav() - ->bootAddonPermissions() + ->bootStores() + ->bootNav() + ->bootPermissions() ->bootGit() - ->bootCascade() + ->bootViewCascade() ->bootBladeDirective() ->bootGraphQL() ->autoPublishConfig(); } - protected function bootAddonStores(): self + protected function bootStores(): self { $seoStore = app(SeoStore::class)->directory(config('advanced-seo.directory')); @@ -132,7 +132,7 @@ protected function bootAddonStores(): self return $this; } - protected function bootAddonNav(): self + protected function bootNav(): self { Nav::extend(function ($nav) { Defaults::enabled() @@ -158,7 +158,7 @@ protected function bootAddonNav(): self return $this; } - protected function bootAddonPermissions(): self + protected function bootPermissions(): self { Permission::extend(function () { Permission::group('advanced-seo', 'Advanced SEO', function () { @@ -199,7 +199,7 @@ protected function bootGit(): self return $this; } - protected function bootCascade(): self + protected function bootViewCascade(): self { View::composer([ ...Arr::wrap(config('advanced-seo.view_composer', '*')),