pimcore / web-to-print-bundle

Web-to-Print community bundle adds web-to-print features to Pimcore documents.
https://pimcore.com/docs/platform/Web_To_Print/
Other
4 stars 12 forks source link

Ease adding of new processors #44

Closed Cruiser13 closed 9 months ago

Cruiser13 commented 1 year ago

The existing processors are hardcoded at various places like https://github.com/pimcore/web-to-print-bundle/blob/4f46683fff81c6b88d537251a47d6da107a98720/src/Processor.php#L39 https://github.com/pimcore/web-to-print-bundle/blob/4f46683fff81c6b88d537251a47d6da107a98720/src/Processor.php#L47

Otherwise we could easily use a new Processor Class (using dompdf or wkhtmltopdf) with this bundle by simply extending Pimcore\Bundle\WebToPrintBundle\Processor and implementing the functions.

Currently we'd need to fork the complete repository as far as I can see. What do you think?

I'd be happy to provide a PR (need to touch all processor definitions code anyway to add a new one).

fashxp commented 1 year ago

We could try to switch so tagged services and a service locator? We would love to see a PR for that.

Cruiser13 commented 7 months ago

@kingjia90 we added our PR in october last year. Half a year passed and it's merged but still not available (no 1.2.0 release). We still manually patch several pimcore 11 instances using this code. Any chance to get a 1.2.0 release including this code soon? Or should we better fork the repository and use it on our own in the future as it's not actively maintained?

fashxp commented 7 months ago

release is actually planned next week, and it also will be part of platform version release 2024.1 later this month.

Cruiser13 commented 7 months ago

@fashxp thank you!