Skip to content

Commit

Permalink
Provider update
Browse files Browse the repository at this point in the history
  • Loading branch information
KaniRobinson committed Jul 13, 2024
1 parent e93aea5 commit 1b8fbe0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 19 deletions.
3 changes: 1 addition & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
23 changes: 6 additions & 17 deletions src/RconServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1b8fbe0

Please sign in to comment.