Méthode |
Description |
|
_default ( string $name ) : boolean |
Run through the default set. model, controller, test model, test controller |
|
_execute ( string $command ) : boolean |
Execute the given sub-command for the current request. |
|
_init ( ) : void |
Class initializer. Parses template and sets up params that need to be filled. |
|
_instance ( string $name, array $config = [] ) : object |
Get an instance of a sub-command |
|
_namespace ( string $request, array $options = [] ) : string |
Get the namespace. |
|
_params ( ) : array |
Parse a template to find available variables specified in {:name} format. Each variable
corresponds to a method in the sub command. For example, a {:namespace} variable will
call the namespace method in the model command when li3 create model Post is called. |
|
_save ( array $params = [] ) : string | boolean |
Save a template with the current params. Writes file to Create::$path. |
|
_template ( ) : string |
Returns the contents of the template. |
|