From 5d29b4091dad7869bfe18d7553fb994b782416f6 Mon Sep 17 00:00:00 2001 From: Christian Fasching Date: Thu, 8 Feb 2024 10:43:03 +0100 Subject: [PATCH] remove enterprise subscription tools (#3) * remove enterprise subscription tools * remove enterprise subscription tools * Apply php-cs-fixer changes --- composer.json | 3 +-- src/PimcoreStudioApiBundle.php | 18 +----------------- 2 files changed, 2 insertions(+), 19 deletions(-) diff --git a/composer.json b/composer.json index aa46df9bc..9245728cc 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "pimcore/studio-api-bundle", - "license": "Pimcore Enterprise License (PEL)", + "license": "proprietary", "type": "pimcore-bundle", "description": "Pimcore Studio Api Bundle", "config": { @@ -18,7 +18,6 @@ "minimum-stability": "dev", "require": { "php": "~8.1.0 || ~8.2.0", - "pimcore/enterprise-subscription-tools": "^1.3", "pimcore/pimcore": "^11.0", "api-platform/core": "^3.2" }, diff --git a/src/PimcoreStudioApiBundle.php b/src/PimcoreStudioApiBundle.php index bb1ca3391..73062b08f 100644 --- a/src/PimcoreStudioApiBundle.php +++ b/src/PimcoreStudioApiBundle.php @@ -13,17 +13,11 @@ namespace Pimcore\Bundle\StudioApiBundle; -use Pimcore\Bundle\EnterpriseSubscriptionToolsBundle\Bundle\EnterpriseBundleInterface; -use Pimcore\Bundle\EnterpriseSubscriptionToolsBundle\PimcoreEnterpriseSubscriptionToolsBundle; use Pimcore\Extension\Bundle\AbstractPimcoreBundle; use Pimcore\Extension\Bundle\Installer\InstallerInterface; -use Pimcore\HttpKernel\BundleCollection\BundleCollection; -class PimcoreStudioApiBundle extends AbstractPimcoreBundle implements - EnterpriseBundleInterface +class PimcoreStudioApiBundle extends AbstractPimcoreBundle { - private const ENTERPRISE_BUNDLE_LICENSE_ID = 'xLicensex'; - public function getPath(): string { return dirname(__DIR__); @@ -46,14 +40,4 @@ public function getInstaller(): ?InstallerInterface /** @var InstallerInterface|null */ return $this->container->get(Installer::class); } - - public static function registerDependentBundles(BundleCollection $collection): void - { - $collection->addBundle(new PimcoreEnterpriseSubscriptionToolsBundle()); - } - - public function getBundleLicenseId(): string - { - return self::ENTERPRISE_BUNDLE_LICENSE_ID; - } }