Tools
class Tools
Contains functions for miscellaneous tasks.
Methods
Returns dashed border.
Creates a directory. It checks if it already exists. If not, user is asked to confirm the want to create a new directory.
Checks if input is in dot notation. If in dot notation the string is placed in an array where the first index is the directory name. The second element is the file name. The structure is shown below:
Tests if a path exits and creates it if necessary.
Generates files for console commands
Details
at line 20
static string
border()
Returns dashed border.
at line 32
static int
createDirWithPrompt(string $directory, InputInterface $cmdInput, OutputInterface $cmdOutput)
Creates a directory. It checks if it already exists. If not, user is asked to confirm the want to create a new directory.
at line 81
static array|int
dotNotationVerify(string $inputName, InputInterface $input)
Checks if input is in dot notation. If in dot notation the string is placed in an array where the first index is the directory name. The second element is the file name. The structure is shown below:
["directory_name","file_name"]
If not in the
at line 102
static void
pathExists(string $path, int $permissions = 0755, bool $recursive = true)
Tests if a path exits and creates it if necessary.
at line 116
static int
writeFile(string $path, string $content, string $name)
Generates files for console commands