How to set the namespace in the CLI Command (programmatically)? |
Hello everyone. My task is to create a spark command that will create a special controller for the module. The essence of the command will be simple, I specify the name of the module, and spark creates a controller in the Controllers directory of this module. An example command would look like this:
Code: php spark mycommand <MyModuleName>
spark make:controller command has --namespace option.
See the source code how to handle the namespace. |
Welcome Guest, Not a member yet? Register Sign In |