Strata\Shell\Command\EnvCommand

Automates Strata self-maintaining scripts.

Intended use include:
<code>./strata env repair</code>
<code>./strata env psr4format</code>

    Synopsis

    class EnvCommand extends StrataCommandBase {
    • // Inherited members from StrataCommandBase
    • protected string $tree_line;
    • protected string $tree_end;
    • public InputInterface $input;
    • public OutputInterface $output;
    }

    Hierarchy

    Tasks

    Line Task
    + This list is not up to date (the test bootstrappers for one thing).

    Members

    protected

    • $directoryStructure — array
      Strata's directory structure
    • $seemsFine — boolean
      A flag that is maintain through a process to advise the user should something happen.
    • $srcUrl — string
      The source URL for stater app files
    • $starterFiles — array
      Strata's empty project files and their destination.
    • $tree_end — string
      The bottom part of a tree representation prefix.
    • $tree_line — string
      A tree representation prefix.

    public

    Methods

    protected

    Inherited from Strata\Shell\Command\StrataCommandBase

    protected

    public

    • factory()
    • fail() — Creates a visual representation of a failed status. This is useful when performing an action that can be skipped or succeed.
    • generateClassPath() — Generates a possible namespace and classname combination of a Strata controller. Mainly used to avoid hardcoding the '\\Shell\\Command\\' string everywhere.
    • nl() — Return a new line.
    • ok() — Creates a visual representation of an OK status. This is useful when performing an action that can fail or be skipped.
    • shutdown() — The shutdown function should be called each time a command has completed execution.
    • startup() — The startup function should be called each time a command is being executed. It saves the Input and Output interfaces to allow the command to use it further down the process.
    • tree() — Creates a visual representation of a tree branch. This is useful when generating a list of files.