mirror of
https://github.com/bitinflow/expose.git
synced 2026-03-13 13:35:54 +00:00
perform connection callbacks
This commit is contained in:
@@ -74,9 +74,20 @@ class ConnectionManager implements ConnectionManagerContract
|
||||
|
||||
$this->logger->logSubdomain($storedConnection->authToken, $storedConnection->subdomain);
|
||||
|
||||
$this->performConnectionCallback($storedConnection);
|
||||
|
||||
return $storedConnection;
|
||||
}
|
||||
|
||||
protected function performConnectionCallback(ControlConnection $connection)
|
||||
{
|
||||
$connectionCallback = config('expose.admin.connection_callback');
|
||||
|
||||
if ($connectionCallback !== null && class_exists($connectionCallback)) {
|
||||
app($connectionCallback)->handle($connection);
|
||||
}
|
||||
}
|
||||
|
||||
public function storeTcpConnection(int $port, ConnectionInterface $connection): ControlConnection
|
||||
{
|
||||
$clientId = (string) uniqid();
|
||||
|
||||
Reference in New Issue
Block a user