From 00cb33df3fa2aa1f9e48d2393dac3dc256445a92 Mon Sep 17 00:00:00 2001 From: Bart Jaskulski <bjaskulski@protonmail.com> Date: Sat, 9 Mar 2024 03:43:51 +0100 Subject: [PATCH] docs: simplify example Signed-off-by: Bart Jaskulski <bjaskulski@protonmail.com> --- docs/configuration.md | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/docs/configuration.md b/docs/configuration.md index 145f2ee..114a837 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -21,12 +21,9 @@ Example of a hook resource content: return [ MyCoolTitleChanger::class, AnotherHookAction::class, - function ( Dependency $dep ) { + function ( Migarator $migrator ) { // You can even use a closure, to execute simple actions. // Arguments are injected by DI container. - $dep->one_off_action(); - }, - function ( Migarator $migrator ) { $migrator->migrate(); } ]; -- GitLab