Skip to content
Snippets Groups Projects
Verified Commit 00cb33df authored by Bartek Jaskulski's avatar Bartek Jaskulski
Browse files

docs: simplify example

parent f1cd022a
Branches
No related tags found
2 merge requests!3improve into wp-hook and some additional unfinished things,!21.x
...@@ -21,12 +21,9 @@ Example of a hook resource content: ...@@ -21,12 +21,9 @@ Example of a hook resource content:
return [ return [
MyCoolTitleChanger::class, MyCoolTitleChanger::class,
AnotherHookAction::class, AnotherHookAction::class,
function ( Dependency $dep ) { function ( Migarator $migrator ) {
// You can even use a closure, to execute simple actions. // You can even use a closure, to execute simple actions.
// Arguments are injected by DI container. // Arguments are injected by DI container.
$dep->one_off_action();
},
function ( Migarator $migrator ) {
$migrator->migrate(); $migrator->migrate();
} }
]; ];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment