Beispiel #1
0
 public function __construct(SystemCallWrapper $fsWrapper, $path)
 {
     if (empty($path) || !$fsWrapper->is_writeable($path)) {
         throw new \Exception('Resource is not writable', 0);
     }
     $fsWrapper->open($path, 'wb');
     $this->sysCallWrapper = $fsWrapper;
 }