RdbAdmin Module

CreateModule extends BaseConsole
in package

RdbAdmin create a module CLI.

Tags
since
0.1

Table of Contents

Properties

$Fs  : FileSystem
$moduleName  : string

Methods

configure()  : void
{@inheritDoc}
execute()  : int
{@inheritDoc}
copyFile()  : bool
Copy file.
copyFolder()  : bool
Copy folder recursive.
executeCopyRequiredFiles()  : mixed
Copy required files (or folders recursive).
executeCopyTests()  : mixed
Copy Tests folder.
renameFiles()  : mixed
Rename PHP template file (.pht) to .php file.
rewritePlaceholder()  : mixed
Rewrite the placeholder.

Properties

Methods

execute()

{@inheritDoc}

protected execute(InputInterface $Input, OutputInterface $Output) : int
Parameters
$Input : InputInterface
$Output : OutputInterface
Return values
int

copyFile()

Copy file.

private copyFile(string $fileName, OutputInterface $Output, SymfonyStyle $Io) : bool
Parameters
$fileName : string

File name.

$Output : OutputInterface
$Io : SymfonyStyle
Return values
bool

Return true on success, false for otherwise.

copyFolder()

Copy folder recursive.

private copyFolder(string $folderName, OutputInterface $Output, SymfonyStyle $Io) : bool
Parameters
$folderName : string

Folder name.

$Output : OutputInterface
$Io : SymfonyStyle
Return values
bool

Return true on success, false for otherwise.

executeCopyRequiredFiles()

Copy required files (or folders recursive).

private executeCopyRequiredFiles(InputInterface $Input, OutputInterface $Output, SymfonyStyle $Io) : mixed
Parameters
$Input : InputInterface
$Output : OutputInterface
$Io : SymfonyStyle

executeCopyTests()

Copy Tests folder.

private executeCopyTests(InputInterface $Input, OutputInterface $Output, SymfonyStyle $Io) : mixed
Parameters
$Input : InputInterface
$Output : OutputInterface
$Io : SymfonyStyle

renameFiles()

Rename PHP template file (.pht) to .php file.

private renameFiles(array<string|int, mixed> $files, OutputInterface $Output, SymfonyStyle $Io) : mixed
Parameters
$files : array<string|int, mixed>

The list of files that has got from \Rdb\System\Libraries\FileSystem->listFilesSubFolders().

$Output : OutputInterface
$Io : SymfonyStyle

rewritePlaceholder()

Rewrite the placeholder.

private rewritePlaceholder(array<string|int, mixed> $files, OutputInterface $Output, SymfonyStyle $Io) : mixed

%ModuleName% to EnteredModuleName.
%modulename% to enteredmodulename.

Parameters
$files : array<string|int, mixed>

The list of files that has got from \Rdb\System\Libraries\FileSystem->listFilesSubFolders().

$Output : OutputInterface
$Io : SymfonyStyle

        
On this page

Search results