We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6558c59 + 12f3ce4 commit bd0d3fcCopy full SHA for bd0d3fc
src/AuthorizationMiddleware.php
@@ -13,15 +13,11 @@
13
14
class AuthorizationMiddleware implements MiddlewareInterface
15
{
16
- private AuthorizationInterface $authorization;
17
-
18
/** @var callable */
19
private $responseFactory;
20
21
- public function __construct(AuthorizationInterface $authorization, callable $responseFactory)
+ public function __construct(private AuthorizationInterface $authorization, callable $responseFactory)
22
23
- $this->authorization = $authorization;
24
25
// Ensures type safety of the composed factory
26
$this->responseFactory = static fn(): ResponseInterface => $responseFactory();
27
}
0 commit comments