Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DevTool : command to generate Class name, service name from a command name. #212

Open
SebSept opened this issue Nov 22, 2021 · 1 comment
Labels
dev related to fop console development

Comments

@SebSept
Copy link
Contributor

SebSept commented Nov 22, 2021

Because of consistency rule that will be introduced soon (#97) command class name, service and command name must adhere to the convention. It could be easy to implement a simple command that will generate them from a command name.

Example
./bin/console fop:dev:generate-names "fop:mydomain:myaction"
will output .

Classname : "Mydomain\MydomainMyAction" (create it in folder xxx, with namespace zzz).
Command name : "fop:mydomain:myaction" (provided by you)
Servicename : "fop.console.mydomain.myaction.command"

Maybe this could help.

I guess it should be a hidden command (not listed in ./bin/console list fop)
It should also be documented in the developper's documentation.

@SebSept SebSept added the dev related to fop console development label Nov 22, 2021
@SebSept
Copy link
Contributor Author

SebSept commented Dec 4, 2021

Not really sure, this is needed, we'll see while folks write a new command...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dev related to fop console development
Projects
None yet
Development

No branches or pull requests

1 participant