Storage Class
Aurora\Storage Namespace
Properties
adapter
Storage adapter
protected $adapter: \AdapterInterface
Constructor
__construct
Constructor
Parameters
Aurora\Storage\Adapter\AdapterInterface
$adapter
— Storage adapter
Signature
public function __construct(Aurora\Storage\Adapter\AdapterInterface $adapter)
Methods
__construct
Constructor
Parameters
-
Aurora\Storage\Adapter\AdapterInterface
$adapter
— Storage adapter
Signature
public function __construct(Aurora\Storage\Adapter\AdapterInterface $adapter)
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
$content
— Data to write -
bool
$overwrite
— Overwrite flag
Return Value
bool
Signature
public function write(string $path, string $content, bool $overwrite): bool