1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 22:10:45 +02:00

[ticket/15305] Use an aditional interface for streams

PHPBB3-15305
This commit is contained in:
Rubén Calvo
2017-08-07 17:15:49 +02:00
parent cd2bae63cb
commit c93c2d4007
4 changed files with 45 additions and 30 deletions

View File

@@ -155,8 +155,7 @@ class storage
* @param string $path File to read
*
* @throws \phpbb\storage\exception\exception When cannot open file
* @throws \phpbb\storage\exception\not_implemented When the adapter doesnt implement the method
*
* @return resource Returns a file pointer
*/
public function read_stream($path)
@@ -169,9 +168,7 @@ class storage
*
* @param string $path The target file
* @param resource $resource The resource
*
* @throws \phpbb\storage\exception\exception When target file exists
* When target file cannot be created
* When target file cannot be created
* @throws \phpbb\storage\exception\not_implemented When the adapter doesnt implement the method
*/
public function write_stream($path, $resource)