Skip to content

Commit

Permalink
[update] utility register syntax for statamic 3.4
Browse files Browse the repository at this point in the history
  • Loading branch information
notnek committed May 23, 2023
1 parent eb430d9 commit 6b7484a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,13 @@ class ServiceProvider extends AddonServiceProvider

public function bootAddon()
{
Utility::make('statamic-github-workflow-dispatch-utility')
Utility::register('statamic-github-workflow-dispatch-utility')
->title('GitHub Workflow Dispatch')
->description('Manually dispatch the GitHub Workflow.')
->icon('git')
->routes(function ($router) {
$router->get('/', [GithubWorkflowDispatchUtilityController::class, 'index'])->name('index');
$router->post('/', [GithubWorkflowDispatchUtilityController::class, 'dispatch'])->name('dispatch');
})
->register();
});
}
}

0 comments on commit 6b7484a

Please sign in to comment.