Skip to content

Commit d2c1632

Browse files
committed
add missing interface
1 parent d2c5833 commit d2c1632

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace PhpMcp\Server\Contracts;
6+
7+
interface SessionIdGeneratorInterface
8+
{
9+
/**
10+
* Generate a unique session ID.
11+
*
12+
* @return string The generated session ID
13+
*/
14+
public function generateId(): string;
15+
16+
/**
17+
* Called when a session is initialized
18+
*
19+
* @param string $sessionId The session ID
20+
*/
21+
public function onSessionInitialized(string $sessionId): void;
22+
}

0 commit comments

Comments
 (0)