Skip to content

Commit c191511

Browse files
authored
Update functions.php
1 parent c5be4e0 commit c191511

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/functions.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,13 @@ function conf(ContainerInterface $container): Config
3131
return $container->get(Config::app_config);
3232
}
3333

34+
/**
35+
* @param callable $callback
36+
* @return callable
37+
*/
38+
function callback(callable $callback): callable
39+
{
40+
return static fn() => $callback ;
41+
}
42+
3443

0 commit comments

Comments
 (0)