Skip to content
This repository was archived by the owner on Mar 29, 2024. It is now read-only.

Commit 99fdf8a

Browse files
committed
Update modules to follow new papameter definition notation, #7
1 parent 2b62e52 commit 99fdf8a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Modules/ModulesService.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,11 @@ protected function createFunctionObject(Context $context, RuntimeFunctionInterfa
8585

8686
protected function createRuntimeFunction(RequireCallbackInterface $require_object): RuntimeFunctionInterface
8787
{
88-
$require_spec = $this->function->build('!(string id)');
88+
$require_spec = $this->function->build('@inject-context (id: string)');
8989

9090
$require_function_object_spec = new AnonymousObjectSpec($this->object->build([
9191
'main' => 'get: getMain()',
92-
'resolve' => '(string id)',
92+
'resolve' => '(id: string)',
9393
]));
9494

9595
return new RuntimeFunction('require', [$require_object, 'callback'], $require_spec, $require_object, $require_function_object_spec);

0 commit comments

Comments
 (0)