Property | Type | Description | |
---|---|---|---|
$factoryList | SplPriorityQueue | The list containing the possible factories |
Method | Description | |
---|---|---|
__construct ( ) | Creates a new factory resolver | |
addFactory ( TQ\Vcs\StreamWrapper\FileBuffer\FactoryInterface $factory, integer $priority = 10 ) : |
Adds a factory to the list of possible factories | |
canHandle ( TQ\Vcs\StreamWrapper\PathInformationInterface $path, string $mode ) : boolean | Returns true if this factory can handle the requested path | |
createFileBuffer ( TQ\Vcs\StreamWrapper\PathInformationInterface $path, string $mode ) : TQ\Vcs\Buffer\FileBufferInterface | Returns the file stream to handle the requested path | |
findFactory ( TQ\Vcs\StreamWrapper\PathInformationInterface $path, string $mode ) : |
Returns the file stream factory to handle the requested path | |
getDefault ( ) : |
Returns a default factory |
public addFactory ( TQ\Vcs\StreamWrapper\FileBuffer\FactoryInterface $factory, integer $priority = 10 ) : |
||
$factory | TQ\Vcs\StreamWrapper\FileBuffer\FactoryInterface | The factory to add |
$priority | integer | The priority |
return | The factory |
public createFileBuffer ( TQ\Vcs\StreamWrapper\PathInformationInterface $path, string $mode ) : TQ\Vcs\Buffer\FileBufferInterface | ||
$path | TQ\Vcs\StreamWrapper\PathInformationInterface | The path information |
$mode | string | The mode used to open the path |
return | TQ\Vcs\Buffer\FileBufferInterface | The file buffer to handle the path |
public findFactory ( TQ\Vcs\StreamWrapper\PathInformationInterface $path, string $mode ) : |
||
$path | TQ\Vcs\StreamWrapper\PathInformationInterface | The path information |
$mode | string | The mode used to open the path |
return | The file buffer factory to handle the path |
public static getDefault ( ) : |
||
return |