feat(share) : source de fichiers SMB (FileSource + SmbFileSource)
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Service\Share;
|
||||
|
||||
interface FileSource
|
||||
{
|
||||
/**
|
||||
* @return FileEntry[] dossiers d'abord, puis fichiers, triés par nom
|
||||
*/
|
||||
public function dir(string $relativePath): array;
|
||||
|
||||
/**
|
||||
* @return resource flux binaire en lecture
|
||||
*/
|
||||
public function read(string $relativePath);
|
||||
|
||||
public function test(): ShareTestResult;
|
||||
}
|
||||
Reference in New Issue
Block a user