diff --git a/composer.json b/composer.json index d3194e4..85325e6 100644 --- a/composer.json +++ b/composer.json @@ -24,7 +24,7 @@ ], "require": { "php": "^8.3", - "astrogoat/strata": "^0.7.0", + "astrogoat/strata": "^0.7.7", "spatie/laravel-package-tools": "^1.4.3", "illuminate/contracts": "^10.0" }, diff --git a/src/SkeletonServiceProvider.php b/src/SkeletonServiceProvider.php index d618bb1..d879f0b 100644 --- a/src/SkeletonServiceProvider.php +++ b/src/SkeletonServiceProvider.php @@ -3,14 +3,13 @@ namespace VendorName\Skeleton; use Helix\Lego\Apps\App; -use Helix\Lego\LegoManager; use Spatie\LaravelPackageTools\Package; -use Spatie\LaravelPackageTools\PackageServiceProvider; +use Helix\Lego\Apps\AppPackageServiceProvider; use VendorName\Skeleton\Settings\SkeletonSettings; -class SkeletonServiceProvider extends PackageServiceProvider +class SkeletonServiceProvider extends AppPackageServiceProvider { - public function registerApp(App $app) + public function registerApp(App $app): App { return $app ->name('skeleton') @@ -23,13 +22,6 @@ public function registerApp(App $app) ->frontendRoutes(__DIR__.'/../routes/frontend.php'); } - public function registeringPackage() - { - $this->callAfterResolving('lego', function (LegoManager $lego) { - $lego->registerApp(fn (App $app) => $this->registerApp($app)); - }); - } - public function configurePackage(Package $package): void { $package->name('skeleton')->hasConfigFile()->hasViews();