-
Notifications
You must be signed in to change notification settings - Fork 354
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #604 from KnpLabs/feature/filesystem-map-interface
declare a FilesystemMapInterface
- Loading branch information
Showing
3 changed files
with
58 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?php | ||
|
||
namespace Gaufrette; | ||
|
||
/** | ||
* Associates filesystem instances to their names. | ||
*/ | ||
interface FilesystemMapInterface | ||
{ | ||
/** | ||
* Indicates whether there is a filesystem registered for the specified | ||
* name. | ||
* | ||
* @param string $name | ||
* | ||
* @return bool | ||
*/ | ||
public function has($name); | ||
|
||
/** | ||
* Returns the filesystem registered for the specified name. | ||
* | ||
* @param string $name | ||
* | ||
* @return FilesystemInterface | ||
* | ||
* @throw \InvalidArgumentException when there is no filesystem registered | ||
* for the specified name | ||
*/ | ||
public function get($name); | ||
} |