You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: flight/Engine.php
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,7 @@
16
16
useflight\template\View;
17
17
useThrowable;
18
18
useflight\net\Route;
19
+
usePsr\Container\ContainerInterface;
19
20
20
21
/**
21
22
* The Engine class contains the core functionality of the framework.
@@ -265,9 +266,9 @@ public function handleException(Throwable $e): void
265
266
/**
266
267
* Registers the container handler
267
268
*
268
-
* @param callable|object $containerHandler Callback function or PSR-11 Container object that sets the container and how it will inject classes
269
+
* @template T of object
269
270
*
270
-
* @return void
271
+
* @param ContainerInterface|callable(class-string<T> $id, array<int|string, mixed> $params): ?T $containerHandler Callback function or PSR-11 Container object that sets the container and how it will inject classes
0 commit comments