mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-06-04 01:34:07 +02:00
more configurability for library users
- Make TimeZoneProvider and System overridable - Add system for passing additional options - make timeout configurable
This commit is contained in:
parent
2f3ff44f4c
commit
2f261f868d
20 changed files with 303 additions and 107 deletions
|
|
@ -9,14 +9,21 @@ namespace Icewind\SMB;
|
|||
|
||||
use Icewind\SMB\Exception\Exception;
|
||||
|
||||
class System {
|
||||
class System implements ISystem {
|
||||
private $smbclient;
|
||||
|
||||
private $net;
|
||||
|
||||
private $stdbuf;
|
||||
|
||||
public static function getFD($num) {
|
||||
/**
|
||||
* Get the path to a file descriptor of the current process
|
||||
*
|
||||
* @param int $num the file descriptor id
|
||||
* @return string
|
||||
* @throws Exception
|
||||
*/
|
||||
public function getFD($num) {
|
||||
$folders = [
|
||||
'/proc/self/fd',
|
||||
'/dev/fd'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue