Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions | Protected Member Functions
Filesystem Class Reference
Inheritance diagram for Filesystem:
Filesystem

Public Member Functions

 overridePath ($code, $value)
 
- Public Member Functions inherited from Filesystem
 __construct (\Magento\Framework\Filesystem\DirectoryList $directoryList, \Magento\Framework\Filesystem\Directory\ReadFactory $readFactory, \Magento\Framework\Filesystem\Directory\WriteFactory $writeFactory)
 
 getDirectoryRead ($directoryCode, $driverCode=DriverPool::FILE)
 
 getDirectoryReadByPath ($path, $driverCode=DriverPool::FILE)
 
 getDirectoryWrite ($directoryCode, $driverCode=DriverPool::FILE)
 
 getUri ($code)
 

Protected Member Functions

 getDirPath ($code)
 
- Protected Member Functions inherited from Filesystem
 getDirPath ($code)
 

Additional Inherited Members

- Protected Attributes inherited from Filesystem
 $directoryList
 
 $readFactory
 
 $writeFactory
 
 $readInstances = []
 
 $writeInstances = []
 

Detailed Description

Definition at line 9 of file Filesystem.php.

Member Function Documentation

◆ getDirPath()

getDirPath (   $code)
protected

{}

Definition at line 21 of file Filesystem.php.

22  {
23  return $this->getOverriddenPath($code, parent::getDirPath($code));
24  }
$code
Definition: info.phtml:12

◆ overridePath()

overridePath (   $code,
  $value 
)

Overrides a path to directory for testing purposes

Parameters
string$code
string$value
Returns
void

Definition at line 33 of file Filesystem.php.

34  {
35  $this->paths[$code] = str_replace('\\', '/', $value);
36  unset($this->readInstances[$code]);
37  unset($this->writeInstances[$code]);
38  }
$value
Definition: gender.phtml:16
$code
Definition: info.phtml:12

The documentation for this class was generated from the following file: