File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed
lib/internal/Magento/Framework/Filesystem/File Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 8
8
use Magento \Framework \Filesystem \DriverInterface ;
9
9
use Magento \Framework \Filesystem \DriverPool ;
10
10
11
+ /**
12
+ * Opens a file for reading
13
+ * @api
14
+ */
11
15
class ReadFactory
12
16
{
13
17
/**
@@ -28,7 +32,7 @@ public function __construct(DriverPool $driverPool)
28
32
}
29
33
30
34
/**
31
- * Create a readable file
35
+ * Create a {@see ReaderInterface}
32
36
*
33
37
* @param string $path
34
38
* @param DriverInterface|string $driver Driver or driver code
Original file line number Diff line number Diff line change 8
8
use Magento \Framework \Filesystem \DriverInterface ;
9
9
use Magento \Framework \Filesystem \DriverPool ;
10
10
11
+ /**
12
+ * Opens a file for reading and/or writing
13
+ * @api
14
+ */
11
15
class WriteFactory extends ReadFactory
12
16
{
13
17
/**
@@ -29,12 +33,12 @@ public function __construct(DriverPool $driverPool)
29
33
}
30
34
31
35
/**
32
- * Create a readable file.
36
+ * Create a {@see WriterInterface}
33
37
*
34
38
* @param string $path
35
39
* @param DriverInterface|string $driver Driver or driver code
36
40
* @param string $mode [optional]
37
- * @return Write
41
+ * @return WriteInterface
38
42
*/
39
43
public function create ($ path , $ driver , $ mode = 'r ' )
40
44
{
You can’t perform that action at this time.
0 commit comments