class FileGenerator (View source)

Constants

COMMANDS_NAMESPACE

CONTROLLERS_NAMESPACE

PARSE_MAX_DEPTH

PARSE_MAX_INCLUDES

Methods

__construct()

Create a FileGenerator instance

string
command(string $name, string $fileTemplate = 'command')

Create command class from file template

string
controller(string $name, string $fileTemplate = 'controller')

Create controller class from file template

string
view(string $name, string $fileTemplate = 'view')

Create view from file template

Details

__construct()

Create a FileGenerator instance

Exceptions

Exception

string command(string $name, string $fileTemplate = 'command')

Create command class from file template

Parameters

string $name
string $fileTemplate

Return Value

string

Exceptions

Exception

string controller(string $name, string $fileTemplate = 'controller')

Create controller class from file template

Parameters

string $name
string $fileTemplate

Return Value

string

Exceptions

Exception

string view(string $name, string $fileTemplate = 'view')

Create view from file template

Parameters

string $name
string $fileTemplate

Return Value

string

Exceptions

Exception