class MiddlewareCommand extends AbstractCommand (View source)

Traits

Properties

protected Setting $setting

Store dirname

from  AbstractCommand
protected array $namespaces

The application namespace

from  AbstractCommand
protected ArgOption $arg

The Arg Option instance

from  AbstractCommand

Methods

throwFailsCommand(string $message, string $command = null)

Throw fails command

void
__construct(Setting $setting, ArgOption $arg)

AbstractCommand constructor

void
generate(string $middleware)

Add middleware

Details

protected throwFailsCommand(string $message, string $command = null)

Throw fails command

Parameters

string $message
string $command

Exceptions

ErrorException

void __construct(Setting $setting, ArgOption $arg)

AbstractCommand constructor

Parameters

Setting $setting
ArgOption $arg

Return Value

void

void generate(string $middleware)

Add middleware

Parameters

string $middleware

Return Value

void