\System\ConsoleCommand

Providencia comandos para o phpeasy-cli

Summary

Methods
Properties
Constants
__construct()
help()
newController()
newModel()
newView()
newMigration()
newMiddleware()
clean()
$commands
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$commands

$commands : array

Variavel que contém todos os possiveis comandos

Type

array

Methods

__construct()

__construct() : void

Adiciona os possiveis comandos para $commands

help()

help() : string

Lista todos os comandos de $commands na tela

Returns

string

newController()

newController(string  $name) : string

Cria um novo controller em app/Controllers

Parameters

string $name

Returns

string

newModel()

newModel(string  $name) : string

Cria um novo model em app/Models

Parameters

string $name

Returns

string

newView()

newView(string  $name) : string

Cria uma nova view e seus arquivos .js e .css em app/Views

Parameters

string $name

Returns

string

newMigration()

newMigration(string  $name) : string

Cria uma nova migration [necessita terminar]

Parameters

string $name

Returns

string

newMiddleware()

newMiddleware(string  $name) : string

Cria um novo middleware

Parameters

string $name

Returns

string

clean()

clean() : void

Apaga os arquivos de cache da pasta cache/