mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-06-03 17:24:07 +02:00
parent
999d6687ca
commit
ed09f6c0b7
3 changed files with 15 additions and 0 deletions
|
|
@ -150,4 +150,11 @@ interface IShare {
|
|||
* @return INotifyHandler
|
||||
*/
|
||||
public function notify($path);
|
||||
|
||||
/**
|
||||
* Get the IServer instance for this share
|
||||
*
|
||||
* @return IServer
|
||||
*/
|
||||
public function getServer(): IServer;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -350,6 +350,10 @@ class NativeShare extends AbstractShare {
|
|||
return $share->notify($path);
|
||||
}
|
||||
|
||||
public function getServer(): IServer {
|
||||
return $this->server;
|
||||
}
|
||||
|
||||
public function __destruct() {
|
||||
unset($this->state);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -552,6 +552,10 @@ class Share extends AbstractShare {
|
|||
return $acls;
|
||||
}
|
||||
|
||||
public function getServer(): IServer {
|
||||
return $this->server;
|
||||
}
|
||||
|
||||
public function __destruct() {
|
||||
unset($this->connection);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue