From 37bfbe623de4735ecda32a802ad7d6d597f0a243 Mon Sep 17 00:00:00 2001 From: robertSt7 Date: Mon, 17 Nov 2025 13:36:35 +0100 Subject: [PATCH 1/2] deprecate bundle --- README.md | 3 +++ src/Web2PrintToolsBundle.php | 13 ++++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 0b61a78..e74e7ad 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,8 @@ # Web2Print Tools Bundle for Pimcore +> [!WARNING] +> This bundle won't be migrated to Pimcore Studio and therefore will be deprecated with 6.1. + Adds following additional features to the web2print functionality of Pimcore. - Favorite Output Channels - Document Editable for Configurable Tables diff --git a/src/Web2PrintToolsBundle.php b/src/Web2PrintToolsBundle.php index 9c46f76..ff9af0b 100644 --- a/src/Web2PrintToolsBundle.php +++ b/src/Web2PrintToolsBundle.php @@ -20,12 +20,23 @@ use Symfony\Component\DependencyInjection\Extension\ExtensionInterface; use Web2PrintToolsBundle\DependencyInjection\Web2PrintToolsExtension; use Web2PrintToolsBundle\Tools\Installer; - +/** + * deprecated version 6.1 + */ class Web2PrintToolsBundle extends AbstractPimcoreBundle implements PimcoreBundleAdminClassicInterface { use BundleAdminClassicTrait; use PackageVersionTrait; + public function __construct() + { + trigger_deprecation( + 'pimcore/web2print-tools-bundle', + '6.1', + 'The Web2PrintToolsBundle is deprecated and will be discontinued with Pimcore Studio.' + ); + } + protected function getComposerPackageName(): string { return 'pimcore/web2print-tools-bundle'; From afffc42010b87fa9834b9244b60ad4c57ea3fd68 Mon Sep 17 00:00:00 2001 From: robertSt7 <104770750+robertSt7@users.noreply.github.com> Date: Mon, 17 Nov 2025 12:37:40 +0000 Subject: [PATCH 2/2] Apply php-cs-fixer changes --- src/Web2PrintToolsBundle.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Web2PrintToolsBundle.php b/src/Web2PrintToolsBundle.php index ff9af0b..996a5c2 100644 --- a/src/Web2PrintToolsBundle.php +++ b/src/Web2PrintToolsBundle.php @@ -20,6 +20,7 @@ use Symfony\Component\DependencyInjection\Extension\ExtensionInterface; use Web2PrintToolsBundle\DependencyInjection\Web2PrintToolsExtension; use Web2PrintToolsBundle\Tools\Installer; + /** * deprecated version 6.1 */