mirror of
https://github.com/adlawson/php-vfs.git
synced 2025-01-27 07:38:27 +00:00
44 lines
1.1 KiB
PHP
44 lines
1.1 KiB
PHP
|
<?php
|
||
|
/*
|
||
|
* This file is part of VFS
|
||
|
*
|
||
|
* Copyright (c) 2014 Andrew Lawson <http://adlawson.com>
|
||
|
*
|
||
|
* For the full copyright and license information, please view the LICENSE
|
||
|
* file that was distributed with this source code.
|
||
|
*/
|
||
|
namespace Vfs;
|
||
|
|
||
|
use Vfs\Exception\RegisteredSchemeException;
|
||
|
use Vfs\Exception\UnregisteredSchemeException;
|
||
|
|
||
|
interface RegistryInterface
|
||
|
{
|
||
|
/**
|
||
|
* @param string $scheme
|
||
|
* @param FileSystemInterface $fs
|
||
|
* @throws RegisteredSchemeException If a mounted file system exists at scheme
|
||
|
*/
|
||
|
public function add($scheme, FileSystemInterface $fs);
|
||
|
|
||
|
/**
|
||
|
* @param string $scheme
|
||
|
* @return FileSystemInterface
|
||
|
* @throws UnregisteredSchemeException If a mounted file system doesn't exist at scheme
|
||
|
*/
|
||
|
public function get($scheme);
|
||
|
|
||
|
/**
|
||
|
* @param string $scheme
|
||
|
* @return boolean
|
||
|
*/
|
||
|
public function has($scheme);
|
||
|
|
||
|
/**
|
||
|
* @param string $scheme
|
||
|
* @return FileSystemInterface
|
||
|
* @throws UnregisteredSchemeException If a mounted file system doesn't exist at scheme
|
||
|
*/
|
||
|
public function remove($scheme);
|
||
|
}
|