diff --git a/composer.json b/composer.json index a7e555d..6c31151 100644 --- a/composer.json +++ b/composer.json @@ -10,8 +10,7 @@ "homepage": "https://github.com/atomcms/rcon", "license": "MIT", "require": { - "php": "^8.1", - "spatie/laravel-package-tools": "^1.16", + "php": "^8.2", "illuminate/contracts": "^10.0||^11.0" }, "require-dev": { diff --git a/src/RconServiceProvider.php b/src/RconServiceProvider.php index 41ab88d..ba3567b 100644 --- a/src/RconServiceProvider.php +++ b/src/RconServiceProvider.php @@ -3,28 +3,17 @@ namespace Atom\Rcon; use Atom\Rcon\Services\RconService; -use Spatie\LaravelPackageTools\Package; -use Spatie\LaravelPackageTools\PackageServiceProvider; +use Illuminate\Support\ServiceProvider; -class RconServiceProvider extends PackageServiceProvider +class RconServiceProvider extends ServiceProvider { /** - * Register services. + * Register any application services. + * + * @return void */ - public function configurePackage(Package $package): void + public function register() { - $package - ->name('rcon') - ->hasConfigFile(); - } - - /** - * Bootstrap services. - */ - public function register(): void - { - parent::register(); - $this->app->bind( RconService::class, fn () => new RconService