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
Splitting to multiple files #137
Comments
Please see https://laravel.com/docs/5.8/envoy#setup It's a PHP file so you can require whatever file you want. |
@driesvints I did not manage to put my task definitions into other file. Is the following supposed to work?
|
Hmm, it seems this is indeed not possible which I believed otherwise. The include annotation works a bit different from Blade where it also parses the blade include. I believe if we could extend the include partial to also parse other files it might work. It's also a bit confusing that it's called Envoy.blade.php but Blade isn't actual used behind the hood. |
Ok. Thanks for confirming this.
Le ven. 19 avr. 2019 à 12:50, Dries Vints <notifications@github.com> a
écrit :
… Hmm, it seems this is indeed not possible which I believed otherwise. The
include annotation works a bit different from Blade where it also parses
the blade include. I believe if we could extend the include partial to also
parse other files it might work. It's also a bit confusing that it's called
Envoy.blade.php but Blade isn't actual used behind the hood.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#137 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AATI2AMBWGO2NLXED2YL6W3PRGPYDANCNFSM4HG5JQ3A>
.
|
Use |
@LukaSikic that indeed works. I'll try to add it to the docs soon but feel free to send in a PR before me. |
Not sure if possible at all currently, but the
Envoy.blade.php
file tends to get larger and larger when tasks are added and made more flexible.I have already externalized most of the configuration and I was wondering if there was a possibility to split the tasks from that file and put them in another file.
If not currently possible, do you think it would technically be easy to add this? I may be able to work on a PR if that is not a huge one.
Thanks!
The text was updated successfully, but these errors were encountered: