-
Notifications
You must be signed in to change notification settings - Fork 141
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
Impossible to generate more than one Excel per request #43
Comments
Mmm I don't get what the problem could be except the memory and time limit, please could explain better the workflow that you have thougth? |
Hum... I don't think there is any problem related to generating several Excels. I just don't see any way to get a new excelObj short of creating them myself (thus bypassing the service and the bundle). I think having a service playing the role of factory (with a createExcelObj and generateResponse methods, or even returning a proxy wrapper around the excelObj with a getResponse method) will be much easier to use than having to bypass the bundle if I want to generate more than one. |
Hum... PR #49 solves part of the problem, but in the end, we still always work on a single ExcelObj and there is still no way to get a new one. However, building up on it, I think I could now provide a new PR to address specifically the issues of being able to use multiple ExcelObj (simultaneously or not) without having to bypass the service. If you are interested, I will probably have time to do so next week. |
Thanks to you def. yes, I hope to find time to add an integration test and to remove the stremed response in favour of Symfony streamed response. :) |
Done :) both, is all your. |
I'm committing the last modification |
I totally have rewritten the Factory, is now possible to create multiple objects. |
Wow! Great! Thank you very much! |
Hello,
I need to create more than one Excel file in one request (They are then bundled in a .zip which is then sent for download).
Sub-requests are not that cool since I don't need them (plus I'm not sure the container will be re-instantiated even with a sub-request) and short from reinitializing the service myself, it's impossible to generate more than one excel at a time.
If the possibility is here (The services.yml is a bit huge a hard to read to me... I may have missed something) could it be possible to document it please?
Thanks for your help and Kudo for the bundle!
The text was updated successfully, but these errors were encountered: