-
Notifications
You must be signed in to change notification settings - Fork 18
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
Defining console commands #18
Comments
@Jaspervv Normally you should have access to the Now for defining commands, I haven't extended the plugin manager for this but this can actually be a great feature addition. So yes, for now I think you can't define commands from the plugin. |
Thanks, I checked and calling commands can be done with Console::call('key:generate'); For anyone coming across this in the future, be sure to check Laravel's Documentation. Implementing commands support for plugins requires more than I thought, |
The idea with plugin commands would be to be able to register commands within the application without having to load WordPress. WordPress will always try to look after a database and for running commands, it is not necessary. |
Is it possible to define console commands from within a plugin? And if so.. how?
The only way made this possible was by editing the themosis/themosis's App\Console\Kernel. But I would like the plugin to work independently.
The text was updated successfully, but these errors were encountered: