Is it correct way to access instance of application? #1743
-
Hi all, So in the task I did next:
In the app I have helper
So far it is working, but slower because MyApp start from 0. But I think it is not totally proper way? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I don't understand the purpose of that helper. It seems to be doing nothing. But you can access the application in Minion tasks via |
Beta Was this translation helpful? Give feedback.
I don't understand the purpose of that helper. It seems to be doing nothing. But you can access the application in Minion tasks via
$job->app
, somy $output = $job->app->build_controller->render_to_string('word/some_prepared_xml', ...)
should just work without you having to do anything at all.