Add RequestContext and logging (#176)
* Implemented MCP logging specification with auto-injection * Add RequestContext * fix tests and style * Better deprecation * fix: minor * Remove ClientAwareInterface * fix cs * fix docs --------- Co-authored-by: Adam Jamiu <jamiuadam120@gmail.com>
This commit is contained in:
parent
369932378f
commit
a1e0f61b6b
1 changed files with 578 additions and 162 deletions
|
|
@ -25,9 +25,9 @@ final class InitializedHandler implements NotificationHandlerInterface
|
|||
return $notification instanceof InitializedNotification;
|
||||
}
|
||||
|
||||
public function handle(Notification $message, SessionInterface $session): void
|
||||
public function handle(Notification $notification, SessionInterface $session): void
|
||||
{
|
||||
\assert($message instanceof InitializedNotification);
|
||||
\assert($notification instanceof InitializedNotification);
|
||||
|
||||
$session->set('initialized', true);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue