Storage
extends BaseConsole
in package
Storage CLI.
Tags
Table of Contents
Properties
Methods
- __construct() : mixed
- Class constructor.
- configure() : void
- {@inheritDoc}
- execute() : int
- {@inheritDoc}
- executeClear() : void|null
- Clear storage folder. (delete cache, logs folders.)
- executeClearDelete() : array<string|int, mixed>
- Do clear target folder.
- executeDelete() : mixed
- Delete folders and files.
- executeList() : mixed
- List folders and files.
- renderTableFiles() : mixed
- Render files to table.
Properties
$Container
protected
Container
$Container
$FileSystem
protected
FileSystem
$FileSystem
Methods
__construct()
Class constructor.
public
__construct([mixed $name = null ][, Container $Container = null ]) : mixed
Parameters
- $name : mixed = null
- $Container : Container = null
-
The DI container class.
configure()
{@inheritDoc}
protected
configure() : void
execute()
{@inheritDoc}
protected
execute(InputInterface $Input, OutputInterface $Output) : int
Parameters
- $Input : InputInterface
- $Output : OutputInterface
Return values
intexecuteClear()
Clear storage folder. (delete cache, logs folders.)
private
executeClear(InputInterface $Input, OutputInterface $Output) : void|null
Parameters
- $Input : InputInterface
- $Output : OutputInterface
Return values
void|nullexecuteClearDelete()
Do clear target folder.
private
executeClearDelete([string $targetFolder = 'cache' ]) : array<string|int, mixed>
Parameters
- $targetFolder : string = 'cache'
-
Target folder to clear.
Return values
array<string|int, mixed> —Return deleted files and folders list.
executeDelete()
Delete folders and files.
private
executeDelete(InputInterface $Input, OutputInterface $Output) : mixed
Parameters
- $Input : InputInterface
- $Output : OutputInterface
executeList()
List folders and files.
private
executeList(InputInterface $Input, OutputInterface $Output) : mixed
Parameters
- $Input : InputInterface
- $Output : OutputInterface
renderTableFiles()
Render files to table.
private
renderTableFiles(OutputInterface $Output, string $tableHead, array<string|int, mixed> $listFiles) : mixed
Parameters
- $Output : OutputInterface
-
Symfony OutputInterface class.
- $tableHead : string
-
Table header text.
- $listFiles : array<string|int, mixed>
-
The files list as array.