-
-
Notifications
You must be signed in to change notification settings - Fork 530
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
[5.x] Calling commands from addons #9861
Comments
I'm assuming you were doing it inside Can you try running that same command but with Artisan, so |
Correct, and that makes it work Duncan! |
Cool, thanks for testing! We probably need to do some more tweaking on our side regarding how |
Cool, glad you're on the right path! |
Not saying it's the fix but can you try |
Do you mean |
Sorry, yeah. |
Yep, that works! |
Should I just use that and consider the case closed? |
Nah, leave it open, it should work with the |
Nah I'd expect |
Hokey dokey. Thanks guys. |
Fixed in #9926 |
Bug description
I have an addon that adds certain commands to Peak sites. In some of those commands I call other Artisan commands:
Artisan::call('cache:clear');
Artisan::call('statamic:glide:clear')
In one command I call them both.
In v5 Alpha 1 and 2 triggering those commands leads to an error:
When I replicate those commands in my actual project (and not in an addon) they work without issue. I can replace the
cache:clear
command with\Illuminate\Support\Facades\Cache::clear()
and that works, however there's no alternative like that for thestatamic:glide:clear
command.How to reproduce
Logs
No response
Environment
Installation
Starter Kit using via CLI
Antlers Parser
None
Additional details
No response
The text was updated successfully, but these errors were encountered: