Submit
Path:
~
/
/
proc
/
thread-self
/
root
/
opt
/
psa
/
admin
/
plib
/
modules
/
monitoring
/
vendor
/
mezzio
/
mezzio
/
src
/
Middleware
/
File Content:
LazyLoadingMiddleware.php
<?php declare (strict_types=1); namespace PleskMonitoring\Mezzio\Middleware; use PleskMonitoring\Mezzio\Exception\InvalidMiddlewareException; use PleskMonitoring\Mezzio\MiddlewareContainer; use PleskMonitoring\Psr\Http\Message\ResponseInterface; use PleskMonitoring\Psr\Http\Message\ServerRequestInterface; use PleskMonitoring\Psr\Http\Server\MiddlewareInterface; use PleskMonitoring\Psr\Http\Server\RequestHandlerInterface; class LazyLoadingMiddleware implements MiddlewareInterface { public function __construct(private MiddlewareContainer $container, public readonly string $middlewareName) { } /** * @throws InvalidMiddlewareException For invalid middleware types pulled * from the container. */ public function process(ServerRequestInterface $request, RequestHandlerInterface $handler) : ResponseInterface { return $this->container->get($this->middlewareName)->process($request, $handler); } }
Submit
FILE
FOLDER
INFO
Name
Size
Permission
Action
ErrorResponseGenerator.php
1597 bytes
0644
LazyLoadingMiddleware.php
956 bytes
0644
WhoopsErrorResponseGenerator.php
3223 bytes
0644
N4ST4R_ID | Naxtarrr