Skip to content

Commit

Permalink
Update VolitionServiceProvider.php
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagof committed Sep 13, 2024
1 parent 137e4fe commit aff68f5
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/VolitionServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,22 @@

namespace Squarebit\Volition;

use Spatie\LaravelPackageTools\Exceptions\InvalidPackage;
use Spatie\LaravelPackageTools\Package;
use Spatie\LaravelPackageTools\PackageServiceProvider;
use Squarebit\Volition\Commands\UpgradeCommand;

class VolitionServiceProvider extends PackageServiceProvider
{
public function register()
/**
* @throws InvalidPackage
*/
public function register(): self
{
$this->app->singleton(Volition::class, fn () => new Volition);
parent::register();

return parent::register();
return $this;
}

public function configurePackage(Package $package): void
Expand Down

0 comments on commit aff68f5

Please sign in to comment.