LocalAdapter Class
Aurora\Storage\Adapter Namespace
Interfaces
Properties
path
Root directory
protected $path = '': string
Constructor
__construct
Constructor
Parameters
string$path— Root path
Signature
public function __construct(string $path)
Methods
__construct
Constructor
Parameters
-
string$path— Root path
Signature
public function __construct(string $path)
exists
Check if the file exists
Parameters
-
string$path— Path to the file
Return Value
bool
Signature
public function exists(string $path): bool
read
Read file contents
Parameters
-
string$path— Path to the file
Return Value
string
Signature
public function read(string $path): string
write
Write file contents
Parameters
-
string$path— Path to the file -
string$contents— Data to write -
bool$overwrite— Overwrite flag
Return Value
bool
Signature
public function write(string $path, string $contents, bool $overwrite): bool
normalizePath
Normalize file path
Parameters
-
string$path— Path to normalize
Return Value
string
Signature
protected function normalizePath(string $path): string