Skip to content

Commit 6b7484a

Browse files
committed
[update] utility register syntax for statamic 3.4
1 parent eb430d9 commit 6b7484a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/ServiceProvider.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,13 @@ class ServiceProvider extends AddonServiceProvider
4343

4444
public function bootAddon()
4545
{
46-
Utility::make('statamic-github-workflow-dispatch-utility')
46+
Utility::register('statamic-github-workflow-dispatch-utility')
4747
->title('GitHub Workflow Dispatch')
4848
->description('Manually dispatch the GitHub Workflow.')
4949
->icon('git')
5050
->routes(function ($router) {
5151
$router->get('/', [GithubWorkflowDispatchUtilityController::class, 'index'])->name('index');
5252
$router->post('/', [GithubWorkflowDispatchUtilityController::class, 'dispatch'])->name('dispatch');
53-
})
54-
->register();
53+
});
5554
}
5655
}

0 commit comments

Comments
 (0)