Strata\Shell\Command\ServerCommand

Starts the Strata Server Shell. This server is expected to understand the differences in configuration between a Vagrant environment and cases when it runs using the current computer's binaries.

Intended use is <code>./strata server</code>

    Synopsis

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

    Hierarchy

    Members

    protected

    • $tree_end — string
      The bottom part of a tree representation prefix.
    • $tree_line — string
      A tree representation prefix.

    public

    Methods

    private

    • hasIniFile() — Confirms whether $filename exists at the base of the project.

    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.