Skip to content

Commit

Permalink
Merge pull request #8 from digitlimit/6-add-support-php-80-83
Browse files Browse the repository at this point in the history
Fix vendor publish
  • Loading branch information
digitlimit authored Nov 9, 2024
2 parents 89d70c7 + 4efa12c commit cc3cdfc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,4 @@
"pestphp/pest-plugin": true
}
}
}
}
9 changes: 3 additions & 6 deletions src/GithookServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use Digitlimit\Githook\Http\Controllers\GithookController;
use Digitlimit\Githook\Providers\EventServiceProvider;
use Illuminate\Contracts\Container\BindingResolutionException;
use Illuminate\Support\ServiceProvider;

class GithookServiceProvider extends ServiceProvider
Expand All @@ -13,7 +14,6 @@ class GithookServiceProvider extends ServiceProvider
*/
public function boot(): void
{
$this->loadViewsFrom(__DIR__.'/../resources/views', 'githook');
$this->loadRoutesFrom(__DIR__.'/../routes/web.php');

if ($this->app->runningInConsole()) {
Expand All @@ -23,8 +23,9 @@ public function boot(): void

/**
* Register the application services.
* @throws BindingResolutionException
*/
public function register()
public function register(): void
{
$this->app->register(EventServiceProvider::class);
$this->app->make(GithookController::class);
Expand All @@ -40,9 +41,5 @@ protected function bootForConsole(): void
$this->publishes([
__DIR__.'/../config/config.php' => config_path('githook.php'),
], 'config');

$this->publishes([
__DIR__.'/../resources/views' => resource_path('views/vendor/githook'),
], 'views');
}
}

0 comments on commit cc3cdfc

Please sign in to comment.