Pneuma Framework

Cli extends AbstractFactory
in package
implements CliInterface

Simple CLI implementation.

Table of Contents

Interfaces

CliInterface
Describes CLI interface.

Properties

$baseApp  : string
$baseResource  : string
$baseView  : string
$environment  : string
$splAutoload  : array<string, string>
$baseCli  : string
$baseCommand  : string

Methods

__construct()  : mixed
run()  : void
Run application.
withBaseApp()  : static
Return an instance with provided base application path.
withBaseCli()  : static
Return an instance with provided base cli path.
withBaseCommand()  : static
Return an instance with provided base command path.
withBaseResource()  : static
Return an instance with provided base resource path.
withBaseView()  : static
Return an instance with provided base view path.
withEnvironment()  : static
Return an instance with provided environment filename.
withSplAutoload()  : static
Return an instance with provided SPL Autoload.

Properties

$baseCli

private string $baseCli = ''

$baseCommand

private string $baseCommand = ''

Methods

__construct()

public __construct([array<string, mixed> $config = [] ]) : mixed
Parameters
$config : array<string, mixed> = []

The configuration.

run()

Run application.

public abstract run([array<string, mixed> $config = [] ]) : void
Parameters
$config : array<string, mixed> = []

The configuration.

Tags
throws
PneumaException

If error.

withBaseApp()

Return an instance with provided base application path.

public withBaseApp(string $path) : static
Parameters
$path : string

The application path.

Tags
throws
PneumaException

If invalid.

Return values
static

withBaseCli()

Return an instance with provided base cli path.

public withBaseCli(string $path) : static
Parameters
$path : string

The base path.

Tags
throws
PneumaException

If invalid.

Return values
static

withBaseCommand()

Return an instance with provided base command path.

public withBaseCommand(string $path) : static
Parameters
$path : string

The base path.

Tags
throws
PneumaException

If invalid.

Return values
static

withBaseResource()

Return an instance with provided base resource path.

public withBaseResource(string $path) : static
Parameters
$path : string

The base path.

Tags
throws
PneumaException

If invalid.

Return values
static

withBaseView()

Return an instance with provided base view path.

public withBaseView(string $path) : static
Parameters
$path : string

The base path.

Tags
throws
PneumaException

If invalid.

Return values
static

withEnvironment()

Return an instance with provided environment filename.

public withEnvironment(string $filename) : static
Parameters
$filename : string

The environment filename.

Tags
throws
PneumaException

If invalid.

Return values
static

withSplAutoload()

Return an instance with provided SPL Autoload.

public withSplAutoload(string $namespace, string $path) : static
Parameters
$namespace : string

The namespace.

$path : string

The path.

Tags
throws
PneumaException

If invalid.

Return values
static

        
On this page

Search results